diff options
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 30 |
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 |