diff options
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find_containers.html')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find_containers.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find_containers.html b/archaeological_finds/templates/ishtar/sheet_find_containers.html new file mode 100644 index 000000000..f7eaa845e --- /dev/null +++ b/archaeological_finds/templates/ishtar/sheet_find_containers.html @@ -0,0 +1,59 @@ +{% load i18n l10n window_field link_to_window %} + {% 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"> + {% if not is_external %} + {% 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> + {% else %} + {{item.container_ref}} + {% endif %} + </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"> + {% if not is_external %} + {% 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> + {% else %} + {% for loca in item.container.localisation_list %} + <li class="breadcrumb-item"> + {{loca}} + </li> + {% endfor %} + <li class="breadcrumb-item"> + {{item.container.short_label}} + </li> + {% endif %} + </ol> + </nav> + </dd> + </dl> + {% endif %} |