summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_find_containers.html
blob: f7eaa845ef50cfa3d6d05509ae55948a10d1e8d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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}}&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>
                  {% 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}}&nbsp;{{loca|simple_link_to_window}}
                  </li>
                  {% endfor %}
                  <li class="breadcrumb-item">
                      {{item.container.short_label}}&nbsp;{{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 %}