Skip to content

Commit

Permalink
[Fixes #11585] Move linked resources widget to the "optional metadata…
Browse files Browse the repository at this point in the history
…" tab
  • Loading branch information
etj committed Oct 12, 2023
1 parent ac26caa commit 936c5d9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
12 changes: 6 additions & 6 deletions geonode/documents/templates/layouts/doc_panels.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,6 @@
{{ document_form.title }}
</div>
{% endblock doc_title %}
{% block doc_linked_resources %}
<div id="req_item">
<span><label for="{{ document_form.linked_resources|id }}">{% trans "Related resources" %}</label></span>
{{ document_form.linked_resources }}
</div>
{% endblock doc_linked_resources %}
{% block doc_abstract %}
<div id="req_item">
<span><label for="{{ document_form.abstract|id }}">{{ document_form.abstract.label }}</label></span>
Expand Down Expand Up @@ -555,6 +549,12 @@
{{ document_form.extra_metadata }}
</div>
{% endblock doc_extra_metadata %}
{% block doc_linked_resources %}
<div id="linked_resources">
<span><label for="{{ document_form.linked_resources|id }}">{% trans "Related resources" %}</label></span>
{{ document_form.linked_resources }}
</div>
{% endblock doc_linked_resources %}
</div>
</div>
<div class="col-xs-12 col-lg-3">
Expand Down
14 changes: 7 additions & 7 deletions geonode/geoapps/templates/layouts/app_panels.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,6 @@
<!--<p class="xxs-font-size">(Name by which the cited resource is known)</p>-->
{{ geoapp_form.title }}
{% endblock %}
{% block geoapp_linked_resources %}
<div id="req_item">
<span><label for="{{ geoapp_form.linked_resources|id }}">{% trans "Related resources" %}</label></span>
{{ geoapp_form.linked_resources }}
</div>
{% endblock geoapp_linked_resources %}

<div>
<span><label for="{{ geoapp_form.abstract|id }}">{{ geoapp_form.abstract.label }}</label></span>
<!--<p class="xxs-font-size">(Brief narrative summary of the content of the resource/s)</p>-->
Expand Down Expand Up @@ -501,6 +494,13 @@
{{ geoapp_form.extra_metadata }}
</div>
{% endblock geoapp_extra_metadata %}
{% block geoapp_linked_resources %}
<div id="linked_resources">
<span><label for="{{ geoapp_form.linked_resources|id }}">{% trans "Related resources" %}</label></span>
{{ geoapp_form.linked_resources }}
</div>
{% endblock geoapp_linked_resources %}

</div>
{% endblock maintenance_block %}
</div>
Expand Down
12 changes: 6 additions & 6 deletions geonode/layers/templates/layouts/panels.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,6 @@
{{ dataset_form.title }}
</div>
{% endblock dataset_title %}
{% block dataset_linked_resources %}
<div id="req_item">
<span><label for="{{ dataset_form.linked_resources|id }}">{% trans "Related resources" %}</label></span>
{{ dataset_form.linked_resources }}
</div>
{% endblock dataset_linked_resources %}
{% block dataset_abstract %}
<div id="req_item">
<span><label for="{{ dataset_form.abstract|id }}">{{ dataset_form.abstract.label }}</label></span>
Expand Down Expand Up @@ -563,6 +557,12 @@
{{ dataset_form.extra_metadata }}
</div>
{% endblock layer_extra_metadata %}
{% block dataset_linked_resources %}
<div id="linked_resources">
<span><label for="{{ dataset_form.linked_resources|id }}">{% trans "Related resources" %}</label></span>
{{ dataset_form.linked_resources }}
</div>
{% endblock dataset_linked_resources %}
</div>
</div>
<div class="col-xs-12 col-lg-3">
Expand Down
13 changes: 7 additions & 6 deletions geonode/maps/templates/layouts/map_panels.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,6 @@
{{ map_form.title }}
</div>
{% endblock map_title %}
{% block map_linked_resources %}
<div id="req_item">
<span><label for="{{ map_form.linked_resources|id }}">{% trans "Related resources" %}</label></span>
{{ map_form.linked_resources }}
</div>
{% endblock map_linked_resources %}
{% block map_abstract %}
<div id="req_item">
<span><label for="{{ map_form.abstract|id }}">{{ map_form.abstract.label }}</label></span>
Expand Down Expand Up @@ -550,6 +544,13 @@
{{ map_form.extra_metadata }}
</div>
{% endblock map_extra_metadata %}
{% block map_linked_resources %}
<div id="linked_resources">
<span><label for="{{ map_form.linked_resources|id }}">{% trans "Related resources" %}</label></span>
{{ map_form.linked_resources }}
</div>
{% endblock map_linked_resources %}

</div>
{% endblock maintenance_block %}
</div>
Expand Down

0 comments on commit 936c5d9

Please sign in to comment.