From 3bba23e35348744b58809a2068d6a8536b6c02e1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 10 Apr 2020 17:11:20 +0200 Subject: Container: adapt forms for the new container management --- .../templates/ishtar/sheet_container.html | 24 +++++++++++-- .../templates/ishtar/wizard/wizard_container.html | 39 +++++++++++++--------- 2 files changed, 45 insertions(+), 18 deletions(-) (limited to 'archaeological_warehouse/templates') 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 %}{% trans "Container" %} - -{{ 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 %} -
+
{% trans "Location" %}