summaryrefslogtreecommitdiff
path: root/archaeological_context_records/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-02-13 17:31:04 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-04-16 16:41:51 +0200
commitda01f74f52ed9cae686b688f0117de5a65041300 (patch)
tree8c639a25d59660e1668321c3580b717980e4a62a /archaeological_context_records/templates
parenta73a0bad9334fb5d65e4ffd1eb7d65a2f189abc6 (diff)
downloadIshtar-da01f74f52ed9cae686b688f0117de5a65041300.tar.bz2
Ishtar-da01f74f52ed9cae686b688f0117de5a65041300.zip
🗃️ Context record - add cultural attribution field (refs #5740)
Diffstat (limited to 'archaeological_context_records/templates')
-rw-r--r--archaeological_context_records/templates/ishtar/sheet_contextrecord.html6
1 files changed, 4 insertions, 2 deletions
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">
<h3>{% trans "Datations"%}</h3>
<div class='row'>
+ {% 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 %}
</div>
-{% 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 %}