summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-08-27 14:20:57 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-08-27 15:07:16 +0200
commite7cd1e316b9f37e553ae52c830001cc4bc06428a (patch)
treeae8465424ba1ca87f34a76ec04c25760d217fa97 /archaeological_finds/templates
parent55e02abfe37176a7dff42900794dc93f481da5bb (diff)
downloadIshtar-e7cd1e316b9f37e553ae52c830001cc4bc06428a.tar.bz2
Ishtar-e7cd1e316b9f37e553ae52c830001cc4bc06428a.zip
✨ finds: change collection to m2m, add owner and ownership (#6082)
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html10
-rw-r--r--archaeological_finds/templates/ishtar/sheet_museum_find.html10
2 files changed, 18 insertions, 2 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index 62cae08fb..247e4c03b 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -212,6 +212,14 @@
</div>
{% endif %}
+ {% if item.has_ownership_section %}
+ <h3>{% trans "Ownership" %}</h3>
+ <div class='row'>
+ {% field_flex _("Ownership status") item.ownership_status %}
+ {% field_flex _("Owner") item.owner %}
+ </div>
+ {% endif %}
+
{% if item.has_museum_section %}
<h3>{% trans "Museum / legal status" %}</h3>
<div class='row'>
@@ -231,7 +239,7 @@
{% field_flex_detail_multiple _("Donors, testators or vendors") item.museum_donors %}
{% field_flex_multiple_obj "Presence of inventory marking" item "museum_inventory_marking_presence" %}
{% field_flex_multiple_obj "Type of marking" item "museum_marking_type" %}
- {% field_flex "Collection" item.museum_collection %}
+ {% field_flex_multiple_obj _("Collections") item "museum_collections" %}
{% field_flex_detail_multiple _("Former collection") item.museum_former_collections %}
{% field_flex "Inventory entry year" item.museum_inventory_entry_year %}
{% field_flex "Conformity with inventory" item.museum_inventory_conformity %}
diff --git a/archaeological_finds/templates/ishtar/sheet_museum_find.html b/archaeological_finds/templates/ishtar/sheet_museum_find.html
index 7ecc38050..291156e7c 100644
--- a/archaeological_finds/templates/ishtar/sheet_museum_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_museum_find.html
@@ -141,12 +141,20 @@
{% field_flex_full _("General comment") item.comment "<pre>" "</pre>" %}
</div>
+ {% if item.has_ownership_section %}
+ <h3>{% trans "Ownership" %}</h3>
+ <div class='row'>
+ {% field_flex _("Ownership status") item.ownership_status %}
+ {% field_flex _("Owner") item.owner %}
+ </div>
+ {% endif %}
+
{% if item.has_museum_section %}
<h3>{% trans "Museum / legal status" %}</h3>
<div class='row'>
{% field_flex "Complete museum ID" item.cache_complete_museum_id %}
{% field_flex "Comment on museum ID" item.museum_id_comment %}
- {% field_flex "Collection" item.museum_collection %}
+ {% field_flex_multiple_obj _("Collections") item "museum_collections" %}
{% field_flex_detail_multiple _("Former collection") item.museum_former_collections %}
{% field_flex_detail "Owner institution" item.museum_owner_institution %}
{% field_flex_detail "Assigned institution" item.museum_assigned_institution %}