diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-05-05 18:45:33 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
commit | 0f5d1297503a97e865ce211b2a0c801b21cfd613 (patch) | |
tree | bc849de6718bea64126c2d25fc36973a0599fb1c /archaeological_context_records | |
parent | 810d6074789e3e6b11854f676314972a6952b486 (diff) | |
download | Ishtar-0f5d1297503a97e865ce211b2a0c801b21cfd613.tar.bz2 Ishtar-0f5d1297503a97e865ce211b2a0c801b21cfd613.zip |
Geodata: display geodata list on sheet
Diffstat (limited to 'archaeological_context_records')
-rw-r--r-- | archaeological_context_records/templates/ishtar/sheet_contextrecord.html | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 1c3bb4b41..db952032c 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -14,6 +14,7 @@ {% with permission_view_own_document=permission_view_own_document %} {% with permission_view_find=permission_view_find %} {% with permission_view_own_find=permission_view_own_find %} +{% with permission_change_geo=permission_change_own_geovectordata|or_:permission_change_geovectordata %} {% with can_view_documents=permission_view_own_document|or_:permission_view_document %} {% with has_documents=item|safe_or:"documents.count" %} @@ -26,6 +27,7 @@ {% with has_finds=item|safe_or:"base_finds.count" %} {% with display_finds=has_finds|and_:can_view_finds %} {% with display_data=item.data %} +{% with display_geo=item.geodata.count %} {% if output != "ODT" and output != "PDF"%} <ul class="nav nav-tabs" id="{{window_id}}-tabs" role="tablist"> @@ -88,6 +90,15 @@ </a> </li> {% endif %} + {% if not is_external and display_geo %} + <li class="nav-item"> + <a class="nav-link" id="{{window_id}}-geodata-tab" + data-toggle="tab" href="#{{window_id}}-geodata" role="tab" + aria-controls="{{window_id}}-geodata" aria-selected="false"> + {% trans "Geographic data" %} + </a> + </li> + {% endif %} {% if display_data %} <li class="nav-item"> <a class="nav-link" id="{{window_id}}-data-tab" @@ -320,6 +331,13 @@ </div> {% endif %} + {% if not is_external and display_geo %} + <div class="tab-pane fade" id="{{window_id}}-geodata" + role="tabpanel" aria-labelledby="{{window_id}}-geodata-tab"> + {% with geo_item=item %}{% include "ishtar/blocks/sheet_geographic.html" %}{% endwith %} + </div> + {% endif %} + {% if display_data %} <div class="tab-pane fade" id="{{window_id}}-data" role="tabpanel" aria-labelledby="{{window_id}}-data-tab"> @@ -328,6 +346,6 @@ {% 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 %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endblock %} |