diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-03-06 18:06:01 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-03-06 18:06:01 +0100 |
commit | b16a39fff95c60711b74ba33977de855d16a1204 (patch) | |
tree | 5939b2cd46e72d9eac7954b620d5be03659b9a52 /archaeological_finds/templates | |
parent | 6bfcffe23290c79c7d72e0aec45bd9ed86d52c14 (diff) | |
download | Ishtar-b16a39fff95c60711b74ba33977de855d16a1204.tar.bz2 Ishtar-b16a39fff95c60711b74ba33977de855d16a1204.zip |
Profile: do not display geo item list when mapping is deactivated (refs #4467)
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_basefind.html | 2 | ||||
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_basefind.html b/archaeological_finds/templates/ishtar/sheet_basefind.html index c3ab1c792..2de9f5afe 100644 --- a/archaeological_finds/templates/ishtar/sheet_basefind.html +++ b/archaeological_finds/templates/ishtar/sheet_basefind.html @@ -55,12 +55,14 @@ <div class="clearfix"> </div> + {% if not is_external and SHOW_GEO %} <h3>{% trans "Geographic localisation" %}</h3> <div class='row'> {% with geo_item=base_find %} {% include "ishtar/blocks/sheet_map.html"%} {% endwith %} </div> + {% endif %} <div class="row"> {% field_flex_full "Point of topographic reference" base_find.topographic_localisation %} </div> diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 9cfcfe707..a628498e0 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -30,7 +30,6 @@ {% with display_warehouse_treatments=item.container|or_:item.container_ref|or_:item.upstream_treatment|or_:item.downstream_treatment|or_:non_modif_treatments_count|or_:associated_treatment_files_count %} {% with can_view_documents=permission_view_own_document|or_:permission_view_document %} {% with display_documents=can_view_documents|and_:item.documents_count %} -{% with display_geo=item.geodata.count %} {% with has_image=item.images_number %} {% if output != "ODT" and output != "PDF"%} @@ -67,7 +66,7 @@ </a> </li> {% endif %} - {% if not is_external and display_geo %} + {% if not is_external and SHOW_GEO %} <li class="nav-item"> <a class="nav-link" id="{{window_id}}-geodata-tab" data-toggle="tab" href="#{{window_id}}-geodata" role="tab" @@ -539,7 +538,7 @@ </div> {% endif %} - {% if not is_external and display_geo %} + {% if not is_external and SHOW_GEO %} <div class="tab-pane fade" id="{{window_id}}-geodata" role="tabpanel" aria-labelledby="{{window_id}}-geodata-tab"> <h3>{% trans "Geographic data" %}</h3> @@ -563,7 +562,7 @@ {% endif %} </div> -{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %} +{% endwith %} {% endwith %} {% endwith %} {% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %} {% endblock %} |