summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates/ishtar/sheet_container.html
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse/templates/ishtar/sheet_container.html')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_container.html24
1 files changed, 21 insertions, 3 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_container.html b/archaeological_warehouse/templates/ishtar/sheet_container.html
index 1bb004071..60f49b7ae 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_container.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_container.html
@@ -2,8 +2,11 @@
{% load i18n window_header window_field window_tables link_to_window %}
{% block head_title %}<strong>{% trans "Container" %}</strong> -
-{{ item.container_type|default:"" }} {{ item.reference|default:"" }} -
-{{ item.location.name|default:"" }}
+{% if item.cached_division %}
+{{item.cached_division}}
+{% else %}
+{{ item.container_type|default:"" }} {{ item.reference|default:"" }} {% endif %}
+- {{ item.location.name|default:"" }}
{% endblock %}
{% block toolbar %}
@@ -34,7 +37,7 @@
{% endif %}
{% field_flex_detail "Warehouse" item.location %}
{% if item.parent %}
- <dl class="col-12 col-md-6 flex-wrap">
+ <dl class="col-12 col-md-9 flex-wrap">
<dt>{% trans "Location" %}</dt>
<dd>
<nav aria-label="breadcrumb">
@@ -55,6 +58,21 @@
</div>
</div>
+
+{% with item.container_type as container_type %}
+{% if container_type.length or container_type.width or container_type.height or container_type.volume or container_type.reference %}
+<h4>{% trans "Container type" %}</h4>
+<div class='row'>
+ {% field_flex "Length (mm)" container_type.length %}
+ {% field_flex "Width (mm)" container_type.width %}
+ {% field_flex "Height (mm)" container_type.height %}
+ {% field_flex "Volume (l)" container_type.volume %}
+ {% field_flex "Reference" container_type.reference %}
+</div>
+{% endif %}
+{% endwith %}
+
+
{% if item.container_content.count or item.children.count %}
<h4>{% trans "Content" %}</h4>