summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-12-02 12:12:02 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:22 +0100
commiteb749255c67bad1603686eb6515bc48759b4fd2b (patch)
treebe5c181831a221d9c91774e9201605a5b37cda2c /archaeological_finds/templates/ishtar
parent3c6d4cca5fdb40850359c5a4cdf1f17fd5bd7473 (diff)
downloadIshtar-eb749255c67bad1603686eb6515bc48759b4fd2b.tar.bz2
Ishtar-eb749255c67bad1603686eb6515bc48759b4fd2b.zip
Sheet: complete identifier
Diffstat (limited to 'archaeological_finds/templates/ishtar')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html5
-rw-r--r--archaeological_finds/templates/ishtar/sheet_treatment.html4
-rw-r--r--archaeological_finds/templates/ishtar/sheet_treatmentfile.html4
3 files changed, 8 insertions, 5 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index 50a21402b..163946fae 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -101,7 +101,7 @@
<a class="nav-link{% if forloop.first %} active{% endif %}"
data-toggle="tab" href="#{{window_id}}-base-find-{{forloop.counter}}"
role="tab">
- {{base_find.short_id}}
+ {% if base_find.complete_identifier %}{{ base_find.complete_identifier }}{% else %}{{base_find.short_id}}{% endif %}
</a>
</li>
{% endfor %}
@@ -126,6 +126,9 @@
<div class='text-center'>
{% include "ishtar/blocks/sheet_external_id.html" %}
+ {% if item.complete_identifier %}<p class="window-refs"
+ title="{% trans 'Complete identifier' %}">
+ <strong>{{ item.complete_identifier }}</strong></p>{% endif %}
</div>
<div class='row'>
diff --git a/archaeological_finds/templates/ishtar/sheet_treatment.html b/archaeological_finds/templates/ishtar/sheet_treatment.html
index e6bd83aab..c82ba53f5 100644
--- a/archaeological_finds/templates/ishtar/sheet_treatment.html
+++ b/archaeological_finds/templates/ishtar/sheet_treatment.html
@@ -52,7 +52,7 @@
<div class="card">
{% include "ishtar/blocks/window_image.html" %}
<div class="card-body">
- <p class="card-text">
+ <div class="card-text">
<p class="window-refs">{{ item.label|default:"" }}</p>
{% if item.other_reference %}
<p class="window-refs">{{ item.other_reference }}</p>{% endif %}
@@ -64,7 +64,7 @@
{% else %}
<p class="window-refs">{% trans "Active" context "Treatment" %}</p>
{% endif %}
- </p>
+ </div>
</div>
</div>
</div>
diff --git a/archaeological_finds/templates/ishtar/sheet_treatmentfile.html b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html
index 32b79a9fe..0c036978f 100644
--- a/archaeological_finds/templates/ishtar/sheet_treatmentfile.html
+++ b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html
@@ -13,7 +13,7 @@
<div class="offset-lg-4 col-lg-4 offset-md-3 col-md-6 offset-sm-1 col-sm-10 col-12">
<div class="card">
<div class="card-body">
- <p class="card-text">
+ <div class="card-text">
<p class="window-refs">{{ item.name|default:"" }}</p>
{% if item.internal_reference %}
<p class="window-refs">{{ item.internal_reference }}</p>{% endif %}
@@ -25,7 +25,7 @@
{% else %}
<p class="window-refs">{% trans "Active" context "Treatment request" %}</p>
{% endif %}
- </p>
+ </div>
</div>
</div>
</div>