summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_basefind.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-19 10:15:39 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-28 11:40:17 +0100
commit01b5bc5bd7e053fdfc160d3ecc8b105ca5bd5691 (patch)
treedb95458313242342a9785f442ac87d6bba7ba480 /archaeological_finds/templates/ishtar/sheet_basefind.html
parent15f731603e022d9a0729019f2565c6536ae417b7 (diff)
downloadIshtar-01b5bc5bd7e053fdfc160d3ecc8b105ca5bd5691.tar.bz2
Ishtar-01b5bc5bd7e053fdfc160d3ecc8b105ca5bd5691.zip
Sheet find: use tabs and pills
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_basefind.html')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_basefind.html14
1 files changed, 6 insertions, 8 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_basefind.html b/archaeological_finds/templates/ishtar/sheet_basefind.html
index c20ca66ee..7ea16fecb 100644
--- a/archaeological_finds/templates/ishtar/sheet_basefind.html
+++ b/archaeological_finds/templates/ishtar/sheet_basefind.html
@@ -1,6 +1,10 @@
{% load i18n window_field from_dict link_to_window window_tables window_header humanize %}
- <p class='window-refs text-center'>{{base_find.complete_id }}</p>
- <p class='window-refs text-center'>{{base_find.short_id }}</p>
+<div id="{{window_id}}-base-find-{{forloop.counter}}" role="tabpanel"
+ class="tab-pane fade{% if forloop.first %} show active{% endif %}">
+ <p class='window-refs text-center'>{{ base_find.complete_id }}</p>
+ {% if base_find.complete_id != base_find.short_id %}
+ <p class='window-refs text-center'>{{ base_find.short_id }}</p>
+ {% endif %}
{% if base_find.external_id %}
<p class='window-refs text-center external-id'>
<small title="{% trans 'Internal ID' %}">
@@ -77,11 +81,5 @@
{% endwith %}{% endwith %}
{% endif %}
</div>
-
-{% if first %}
- </div>
</div>
-<div class="subsection">
-{% endif %}
-{% if forloop.counter0 %}<hr/>{% endif %}