From 4e458305a1d2f032b40d0c043d32341d2e55d460 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 13 Feb 2024 17:31:04 +0100 Subject: 🗃️ Context record - add cultural attribution field (refs #5740) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/ishtar/sheet_contextrecord.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'archaeological_context_records/templates') diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 7fc1a03e7..6f3bafed7 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -24,8 +24,9 @@ {% with display_documents=can_view_documents|and_:has_documents %} {% with display_relations=item|safe_or:"right_relations.count|left_relations.count" %} {% with has_image=item|safe_or:"images.count" %} +{% with has_cultural_attributions=item|safe_or:"cultural_attributions.count" %} {% with display_interpretation=item.activity|or_:item.identification|or_:item.interpretation|or_:item.filling %} -{% with display_datations=item.taq|or_:item.taq_estimated|or_:item.tpq|or_:item.tpq_estimated %} +{% with display_datations=item.taq|or_:item.taq_estimated|or_:item.tpq|or_:item.tpq_estimated|or_:has_cultural_attributions %} {% with can_view_finds=permission_view_own_find|or_:permission_view_find %} {% with has_finds=item|safe_or:"base_finds.count" %} {% with display_finds=has_finds|and_:can_view_finds %} @@ -197,6 +198,7 @@ role="tabpanel" aria-labelledby="{{window_id}}-datations-tab">

{% trans "Datations"%}

+ {% field_flex_multiple_obj "Cultural attributions" item 'cultural_attributions' %} {% field_flex "TAQ" item.taq %} {% field_flex "Estimated TAQ" item.taq_estimated %} {% field_flex "TPQ" item.tpq %} @@ -345,6 +347,6 @@ {% endif %}
-{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} +{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endblock %} -- cgit v1.2.3