diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-12 11:28:20 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:24 +0100 |
commit | 6b51ad99e8787d33fba8d22f32517ec8be8414db (patch) | |
tree | f447514147bf6804d05a594ff19690b3081d33fc /archaeological_finds/templates/ishtar/sheet_find.html | |
parent | c810dfdbba3454a427cf9e9332562bbc749c40d6 (diff) | |
download | Ishtar-6b51ad99e8787d33fba8d22f32517ec8be8414db.tar.bz2 Ishtar-6b51ad99e8787d33fba8d22f32517ec8be8414db.zip |
Improve find sheet / search
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 49 |
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}} {{loca|simple_link_to_window}} + </li> + {% endfor %} + <li class="breadcrumb-item"> + {{item.container_ref.short_label}} {{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}} {{loca|simple_link_to_window}} + </li> + {% endfor %} + <li class="breadcrumb-item"> + {{item.container.short_label}} {{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 %} |