summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates/ishtar/sheet_site.html
diff options
context:
space:
mode:
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
commit0f5d1297503a97e865ce211b2a0c801b21cfd613 (patch)
treebc849de6718bea64126c2d25fc36973a0599fb1c /archaeological_operations/templates/ishtar/sheet_site.html
parent810d6074789e3e6b11854f676314972a6952b486 (diff)
downloadIshtar-0f5d1297503a97e865ce211b2a0c801b21cfd613.tar.bz2
Ishtar-0f5d1297503a97e865ce211b2a0c801b21cfd613.zip
Geodata: display geodata list on sheet
Diffstat (limited to 'archaeological_operations/templates/ishtar/sheet_site.html')
-rw-r--r--archaeological_operations/templates/ishtar/sheet_site.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_site.html b/archaeological_operations/templates/ishtar/sheet_site.html
index a1125d202..e9004d875 100644
--- a/archaeological_operations/templates/ishtar/sheet_site.html
+++ b/archaeological_operations/templates/ishtar/sheet_site.html
@@ -1,5 +1,5 @@
{% extends "ishtar/sheet.html" %}
-{% load i18n window_tables window_header window_ope_tables window_field from_dict %}
+{% load i18n ishtar_helpers window_tables window_header window_ope_tables window_field from_dict %}
{% block head_title %}<strong>{{SITE_LABEL}}</strong> - {{item.cached_label}}{% endblock %}
@@ -8,6 +8,8 @@
{% endblock %}
{% block content %}
+{% with permission_change_geo=permission_change_own_geovectordata|or_:permission_change_geovectordata %}
+{% with display_geo=item.geodata.count %}
<div class="row">
<div class="offset-lg-4 col-lg-4 offset-md-3 col-md-6 offset-sm-1 col-sm-10 col-12">
@@ -98,4 +100,9 @@
{% endif %}
{% endif %}
+{% if not is_external and display_geo %}
+{% with geo_item=item %}{% include "ishtar/blocks/sheet_geographic.html" %}{% endwith %}
+{% endif %}
+
+{% endwith %} {% endwith %}
{% endblock %}