From 97053e4cb41686a03b2a75f2555bbbe14f371f47 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 4 Mar 2026 18:33:09 +0100 Subject: 🚧 Statement condition - document: templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/ishtar/blocks/alt_window_image.html | 48 ++++++++++++++++++++++ ishtar_common/templates/ishtar/sheet_document.html | 1 + 2 files changed, 49 insertions(+) create mode 100644 ishtar_common/templates/ishtar/blocks/alt_window_image.html (limited to 'ishtar_common') diff --git a/ishtar_common/templates/ishtar/blocks/alt_window_image.html b/ishtar_common/templates/ishtar/blocks/alt_window_image.html new file mode 100644 index 000000000..bd1565fa4 --- /dev/null +++ b/ishtar_common/templates/ishtar/blocks/alt_window_image.html @@ -0,0 +1,48 @@ +{% load i18n ishtar_helpers link_to_window %}{% if document_image.images_number %} +{% if output == "ODT" or output == "PDF"%} +{% else %} +{% with can_edit_document=permission_change_own_document|or_:permission_change_document %} +{% trans "Sheet" as sheet_lbl %} +
+ {% if document_image.main_image and document_image.main_image.image %}{% with image=document_image.main_image %} +
+ × + {% include "ishtar/blocks/window_image_detail.html" %} + {{image|simple_link_to_window:sheet_lbl}}   + {% if can_edit_document %} + + {% trans "Modify" %} + + {% endif %} +
+ {% endwith %}{% endif %} + {% for image in document_image.images_without_main_image.all %}{% if image.image %} +
+ × + {% include "ishtar/blocks/window_image_detail.html" %} + {{image|simple_link_to_window:sheet_lbl}}   + {% if can_edit_document %} + + {% trans "Modify" %} + + {% endif %} +
+ {% endif %}{% endfor %} +
+
+ {% if document_image.main_image and document_image.main_image.image and document_image.main_image.thumbnail %}{% with image=document_image.main_image %} + + + + {% endwith %}{% endif %} + {% for image in document_image.images_without_main_image.all %}{% if image.image and image.thumbnail %} + + + + {% endif %}{% endfor %} +
+{% endwith %} +{% endif%} +{% endif%} diff --git a/ishtar_common/templates/ishtar/sheet_document.html b/ishtar_common/templates/ishtar/sheet_document.html index d2fa2d2ef..96ea4ed40 100644 --- a/ishtar_common/templates/ishtar/sheet_document.html +++ b/ishtar_common/templates/ishtar/sheet_document.html @@ -127,6 +127,7 @@ {% field_flex_full _("Finds") item.finds|add_links %} {% field_flex_full _("Treatments") item.treatments|add_links %} {% field_flex_full _("Exhibitions") item.exhibitions|add_links %} +{% field_flex_full _("Statement conditions") item.statement_conditions|add_links %} {% field_flex_full _("Treatment files") item.treatment_files|add_links %} {% field_flex_full _("Warehouses") item.warehouses|add_links %} {% field_flex_full _("Containers") item.containers|add_links %} -- cgit v1.2.3