From c591e3524714fdc170536f6caa47401d8d93ebf6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 15 Jan 2019 19:51:13 +0100 Subject: Operation - sites: settings for M2M history --- .../templates/ishtar/sheet_operation.html | 13 ++++++++++--- .../templates/ishtar/sheet_site.html | 15 +++++++++++++-- 2 files changed, 23 insertions(+), 5 deletions(-) (limited to 'archaeological_operations/templates') diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 8801855cd..f13a21336 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -96,8 +96,8 @@
- {% field_flex_multiple "Remains" item.remains %} - {% field_flex_multiple "Periods" item.periods %} + {% field_flex_multiple_obj "Remains" item 'remains' %} + {% field_flex_multiple_obj "Periods" item 'periods' %} {% field_flex "Record quality" item.record_quality_type %} {% field_flex "Report delivery date" item.report_delivery_date %} {% field_flex "Report processing" item.report_processing %} @@ -155,7 +155,14 @@
{% endif %} -{% if not next %} +{% if next %} +{% if item|m2m_listing:'towns' %} +

{% trans "Localisation"%}

+
+ {% field_flex_full "Towns" item|m2m_listing:'towns'|join:" ; " %} +
+{% endif %} +{% else %} {% if item.towns.count %}

{% trans "Localisation"%}

diff --git a/archaeological_operations/templates/ishtar/sheet_site.html b/archaeological_operations/templates/ishtar/sheet_site.html index 0108d3db6..14c30bd38 100644 --- a/archaeological_operations/templates/ishtar/sheet_site.html +++ b/archaeological_operations/templates/ishtar/sheet_site.html @@ -34,12 +34,22 @@
{% include "ishtar/blocks/sheet_creation_section.html" %} - {% field_flex_multiple "Periods" item.periods %} - {% field_flex_multiple "Remains" item.remains %} + {% field_flex_multiple_obj "Periods" item 'periods' %} + {% field_flex_multiple_obj "Remains" item 'remains' %} {% field_flex_multiple "Collaborators" item.collaborators %} {% field_flex_full "Comment" item.comment "
" "
" %}
+{% if next %} +{% if item|m2m_listing:'towns' or item.locality_ngi or item.locality_cadastral %} +

{% trans "Localisation"%}

+
+ {% field_flex_full "Towns" item|m2m_listing:'towns'|join:" ; " %} + {% field_flex_full "National Geographic Institute locality" item.locality_ngi "
" "
" %} + {% field_flex_full "Cadastral locality" item.locality_cadastral "
" "
" %} +
+{% endif %} +{% else %} {% if item.towns.count or item.locality_ngi or item.locality_cadastral %}

{% trans "Localisation"%}

@@ -48,6 +58,7 @@ {% field_flex_full "Cadastral locality" item.locality_cadastral "
" "
" %}
{% endif %} +{% endif %} {% if item.affmar_number or item.drassm_number or item.oceanographic_service_localisation or item.shipwreck_code or item.sinking_date or item.discovery_area or item.shipwreck_name %}

{% trans "Underwater"%}

-- cgit v1.2.3