summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse/templates/ishtar/sheet_warehouse.html')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_warehouse.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
index eed484d5a..6be884e8e 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
@@ -31,13 +31,26 @@
<div class='row'>
{% field_flex "Person in charge" item.person_in_charge %}
{% include "ishtar/blocks/sheet_creation_section.html" %}
- {% include "ishtar/blocks/sheet_address_section.html" %}
{% field_flex "Divisions" item.location_types|join:", " %}
{% field_flex_full "Comment" item.comment "<pre>" "</pre>" %}
{% include "ishtar/blocks/sheet_json.html" %}
</div>
+{% if item.point_2d or item.multi_polygon or item.address or item.address_complement or item.postal_code or item.town %}
+<h3>{% trans "Localisation"%}</h3>
+<div class='row'>
+ {% 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"%}
+ {% with full=True %}{% include "ishtar/blocks/sheet_address_section.html" %}{% endwith %}
+ </div>
+ {% endwith %}
+</div>
+{% endif %}
+
+
{% if item.containers.count %}
<h4>{% trans "Containers" %}</h4>
{% dynamic_table_document '' 'containers' 'location_id' item.pk 'TABLE_COLS' output %}