From 936c5d93390ba7f4b06acfccf587eeaa01467f33 Mon Sep 17 00:00:00 2001 From: etj Date: Thu, 12 Oct 2023 16:41:53 +0200 Subject: [PATCH] [Fixes #11585] Move linked resources widget to the "optional metadata" tab --- .../documents/templates/layouts/doc_panels.html | 12 ++++++------ geonode/geoapps/templates/layouts/app_panels.html | 14 +++++++------- geonode/layers/templates/layouts/panels.html | 12 ++++++------ geonode/maps/templates/layouts/map_panels.html | 13 +++++++------ 4 files changed, 26 insertions(+), 25 deletions(-) diff --git a/geonode/documents/templates/layouts/doc_panels.html b/geonode/documents/templates/layouts/doc_panels.html index 0c7c10667ba..e2dffb26eea 100644 --- a/geonode/documents/templates/layouts/doc_panels.html +++ b/geonode/documents/templates/layouts/doc_panels.html @@ -313,12 +313,6 @@ {{ document_form.title }} {% endblock doc_title %} - {% block doc_linked_resources %} -
- - {{ document_form.linked_resources }} -
- {% endblock doc_linked_resources %} {% block doc_abstract %}
@@ -555,6 +549,12 @@ {{ document_form.extra_metadata }}
{% endblock doc_extra_metadata %} + {% block doc_linked_resources %} +
+ + {{ document_form.linked_resources }} +
+ {% endblock doc_linked_resources %}
diff --git a/geonode/geoapps/templates/layouts/app_panels.html b/geonode/geoapps/templates/layouts/app_panels.html index 855c10b1429..ddedc0eb6bf 100644 --- a/geonode/geoapps/templates/layouts/app_panels.html +++ b/geonode/geoapps/templates/layouts/app_panels.html @@ -297,13 +297,6 @@ {{ geoapp_form.title }} {% endblock %} - {% block geoapp_linked_resources %} -
- - {{ geoapp_form.linked_resources }} -
- {% endblock geoapp_linked_resources %} -
@@ -501,6 +494,13 @@ {{ geoapp_form.extra_metadata }}
{% endblock geoapp_extra_metadata %} + {% block geoapp_linked_resources %} +
+ + {{ geoapp_form.linked_resources }} +
+ {% endblock geoapp_linked_resources %} +
{% endblock maintenance_block %} diff --git a/geonode/layers/templates/layouts/panels.html b/geonode/layers/templates/layouts/panels.html index dfd9d14e40a..4ee805635e8 100644 --- a/geonode/layers/templates/layouts/panels.html +++ b/geonode/layers/templates/layouts/panels.html @@ -331,12 +331,6 @@ {{ dataset_form.title }} {% endblock dataset_title %} - {% block dataset_linked_resources %} -
- - {{ dataset_form.linked_resources }} -
- {% endblock dataset_linked_resources %} {% block dataset_abstract %}
@@ -563,6 +557,12 @@ {{ dataset_form.extra_metadata }}
{% endblock layer_extra_metadata %} + {% block dataset_linked_resources %} +
+ + {{ dataset_form.linked_resources }} +
+ {% endblock dataset_linked_resources %}
diff --git a/geonode/maps/templates/layouts/map_panels.html b/geonode/maps/templates/layouts/map_panels.html index 1dc3deb8ff6..eb163abdf2d 100644 --- a/geonode/maps/templates/layouts/map_panels.html +++ b/geonode/maps/templates/layouts/map_panels.html @@ -317,12 +317,6 @@ {{ map_form.title }}
{% endblock map_title %} - {% block map_linked_resources %} -
- - {{ map_form.linked_resources }} -
- {% endblock map_linked_resources %} {% block map_abstract %}
@@ -550,6 +544,13 @@ {{ map_form.extra_metadata }}
{% endblock map_extra_metadata %} + {% block map_linked_resources %} +
+ + {{ map_form.linked_resources }} +
+ {% endblock map_linked_resources %} + {% endblock maintenance_block %}