summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-14 16:31:17 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-24 19:38:56 +0200
commit265d0180cc945281a93efc2f1278959594727e57 (patch)
tree58d4f80dd68b4ee19444a4cfda604e6665af6da8 /archaeological_operations/templates
parent1802bffb4d452550e9349875aeee81db8d030b44 (diff)
downloadIshtar-265d0180cc945281a93efc2f1278959594727e57.tar.bz2
Ishtar-265d0180cc945281a93efc2f1278959594727e57.zip
Sheet operation: display map
Diffstat (limited to 'archaeological_operations/templates')
-rw-r--r--archaeological_operations/templates/ishtar/sheet_operation.html30
1 files changed, 14 insertions, 16 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html
index f13a21336..6ed3c1b4c 100644
--- a/archaeological_operations/templates/ishtar/sheet_operation.html
+++ b/archaeological_operations/templates/ishtar/sheet_operation.html
@@ -155,23 +155,23 @@
</div>
{% endif %}
-{% if next %}
-{% if item|m2m_listing:'towns' %}
<h3>{% trans "Localisation"%}</h3>
<div class="row">
- {% field_flex_full "Towns" item|m2m_listing:'towns'|join:" ; " %}
-</div>
-{% endif %}
-{% else %}
-{% if item.towns.count %}
-<h3>{% trans "Localisation"%}</h3>
-<div class="row">
- {% field_flex_full "Towns" item.towns_codes|join:" ; " %}
- {% field_flex "Main address" item.associated_file.address %}
- {% field_flex "Complement" item.associated_file.address_complement %}
- {% field_flex "Postal code" item.associated_file.postal_code %}
+ {% with geo_item=item %}
+ {% include "ishtar/blocks/sheet_simple_map.html"%}
+ <div class="col-12 col-lg-6 flex-wrap">
+ {% include "ishtar/blocks/sheet_coordinates.html"%}
+ {% if next %}
+ {% field_flex_full "Towns" item|m2m_listing:'towns'|join:" ; " %}
+ {% else %}
+ {% field_flex_full "Towns" item.towns_codes|join:" ; " %}
+ {% endif %}
+ {% field_flex "Main address" item.associated_file.address %}
+ {% field_flex "Complement" item.associated_file.address_complement %}
+ {% field_flex "Postal code" item.associated_file.postal_code %}
+ </div>
+ {% endwith %}
</div>
-{% endif %}
{% if item.right_relations.count %}
<h3>{% trans "Relations"%}</h3>
@@ -364,6 +364,4 @@
</div>
{% endif %}
-{% endif %}
-
{% endblock %} \ No newline at end of file