summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_find.html
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html49
1 files changed, 43 insertions, 6 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index 2a1cf595a..44a463fe9 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -266,12 +266,49 @@
{% if item.container or item.container_ref %}
<h3>{% trans "Warehouse - container" %}</h3>
<div class='row'>
- {% field_flex_detail "Container" item.container "large" %}
- {% field_flex_detail "Reference container" item.container_ref "large" %}
- {% field_flex "Container ID" item.container.cached_location %}
- {% field_flex_detail "Responsible warehouse" item.container.responsible %}
- {% field_flex_detail "Location (warehouse)" item.container.location %}
- {% field_flex "Precise localisation" item.container.cached_division %}
+ {% if item.container_ref != item.container and item.container_ref %}
+ <dl class="col-12 flex-wrap">
+ <dt>{% trans "Reference container" %}</dt>
+ <dd>
+ <nav aria-label="breadcrumb">
+ <ol class="breadcrumb">
+ {% for loca in item.container_ref.get_localisations %}
+ <li class="breadcrumb-item">
+ {{loca.short_label}}&nbsp;{{loca|simple_link_to_window}}
+ </li>
+ {% endfor %}
+ <li class="breadcrumb-item">
+ {{item.container_ref.short_label}}&nbsp;{{item.container_ref|simple_link_to_window}}
+ </li>
+ </ol>
+ </nav>
+ </dd>
+ </dl>
+ {% endif %}
+ {% if item.container %}
+ <dl class="col-12 flex-wrap">
+ <dt>
+ {% if item.container_ref != item.container %}
+ {% trans "Current container" %}{% else %}
+ {% trans "Reference container / current container" %}
+ {% endif %}
+ </dt>
+ <dd>
+ <nav aria-label="breadcrumb">
+ <ol class="breadcrumb">
+ {% for loca in item.container.get_localisations %}
+ <li class="breadcrumb-item">
+ {{loca.short_label}}&nbsp;{{loca|simple_link_to_window}}
+ </li>
+ {% endfor %}
+ <li class="breadcrumb-item">
+ {{item.container.short_label}}&nbsp;{{item.container|simple_link_to_window}}
+ </li>
+ </ol>
+ </nav>
+ </dd>
+ </dl>
+ {% endif %}
</div>
{% endif %}
{% if item.upstream_treatment or item.downstream_treatment or non_modif_treatments_count %}