From 596c193c38c5eef0ad0798d690e65215744346bf Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 12 Feb 2019 15:46:33 +0100 Subject: Add documents to containers --- .../templates/ishtar/sheet_container.html | 52 ++++++++++++---------- 1 file changed, 28 insertions(+), 24 deletions(-) (limited to 'archaeological_warehouse/templates/ishtar/sheet_container.html') diff --git a/archaeological_warehouse/templates/ishtar/sheet_container.html b/archaeological_warehouse/templates/ishtar/sheet_container.html index 262d7145b..27cbf9bee 100644 --- a/archaeological_warehouse/templates/ishtar/sheet_container.html +++ b/archaeological_warehouse/templates/ishtar/sheet_container.html @@ -8,34 +8,38 @@ {% endblock %} {% block content %} -
-
-
- {% include "ishtar/blocks/window_image.html" %} -
-

-

{{ item.reference|default:"" }}

-

{{ item.container_type|default:"" }}

-

{{ item.responsible.name }} - {{ item.index }}

-

{{ item.old_reference|default:"" }}

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

-
-
+
+ {% if item.main_image %} +
+ {% include "ishtar/blocks/window_image.html" %} +
+ {% endif %} + {% if item.main_image %} +
{#
> #} + {% else %} +
+ {% endif %} +

{{ item.reference|default:"" }}

+

{{ item.container_type|default:"" }}

+

{{ item.responsible.name }} - {{ item.index }}

+

{{ item.old_reference|default:"" }}

+ {% include "ishtar/blocks/sheet_external_id.html" %} +
+ {% if item.main_image %} +
{#
> #} + {% else %} +
+ {% endif %} + {% field_flex_detail "Responsible warehouse" item.responsible %} + {% field_flex_detail "Location (warehouse)" item.location %} + {% include "ishtar/blocks/sheet_creation_section.html" %} + {% field_flex "Location" item.precise_location %} + {% field_flex_full "Comment" item.comment "
" "
" %} + {% include "ishtar/blocks/sheet_json.html" %}
-
- {% field_flex_detail "Responsible warehouse" item.responsible %} - {% field_flex_detail "Location (warehouse)" item.location %} - {% include "ishtar/blocks/sheet_creation_section.html" %} - {% field_flex "Location" item.precise_location %} - {% field_flex_full "Comment" item.comment "
" "
" %} -
- -{% include "ishtar/blocks/sheet_json.html" %} - {% if item.finds.count %}

{% trans "Content" %}

{% dynamic_table_document finds 'finds' 'container' item.pk 'TABLE_COLS' output 'large' %} -- cgit v1.2.3