From 81fdb4ba9532de6ef770b3c4a4e75ee49f2ada5c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 18 Feb 2024 17:07:19 +0100 Subject: ✨ Operation: improve sheet (#5753) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/ishtar/sheet_operation.html | 54 ++++++++++++---------- 1 file changed, 29 insertions(+), 25 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 93ea999e4..2d276b67c 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -126,38 +126,42 @@ role="tabpanel" aria-labelledby="{{window_id}}-general-tab">
-
+
{% include "ishtar/blocks/window_image.html" %} -
-
-
- {% if item.year or item.operation_code %} - {{item.year|default:''}}-{{item.operation_code|default:''}}{% endif %}
- {% if item.code_patriarche %}{% if PROFILE.operation_prefix %}{{PROFILE.operation_prefix}}{% endif %}{{item.code_patriarche}}{% endif %} - {% if item.complete_identifier %}

- {{ item.complete_identifier }}

{% endif %} -
-
+
+
+ {% include "ishtar/blocks/sheet_external_id.html" %} -
-
-
-

- {% if next %} - {{ item|m2m_listing:'towns'|join:" ; "|default:'' }} - {% else %} - {{ item.cached_towns_label }} - {% endif %} -

-

{{item.common_name|default:''}}

+ + {% with PROFILE.operation_prefix|add:item.code_patriarche as ope_code %} + {% if not item.code_patriarche and item.year and item.operation_code %} + {{item.year|default:''}}-{{item.operation_code|default:''}} + {% else %} + {{ope_code}} + {% endif %} + {% if item.complete_identifier != ope_code %}

+ {{ item.complete_identifier }}

{% endif %} + {% endwith %}
+
+ {% if item.year %}{% trans "Year" %}{{ item.year|unlocalize }}{% endif %} + {% trans "Towns" %} + {% if next %} + {{ item|m2m_listing:'towns'|join:" ; "|default:'' }} + {% else %} + {{ item.cached_towns_label }} + {% endif %} + + {% if item.common_name %}{% trans "Name" %}{{ item.common_name }}{% endif %} + {% if item.address %}{% trans "Address / Locality" %}{{ item.address }}{% endif %} +
{% trans "Excavation dates (start/end)" as date_label %} - {% if not is_external %} + {% if item.start_date or item.end_date %}{% if not is_external %} {% with start_date=item.start_date|date:"DATE_FORMAT"|default:"-" %} {% with end_date=item.excavation_end_date|date:"DATE_FORMAT"|default:"-" %} {% with dates=start_date|add:" / "|add:end_date %} @@ -169,7 +173,7 @@ {% with dates=start_date|add:" / "|add:end_date %} {% field_flex_2 date_label dates %} {% endwith %}{% endwith %}{% endwith %} - {% endif %} + {% endif %}{% endif %}
{% trans "State" %} -- cgit v1.2.3