summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-10-01 17:10:09 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-10-01 17:10:09 +0200
commitb33503364d3a4784607871e3771973bafa00aac2 (patch)
tree88fd6c554010303955add9a3f13c2fbce9c93e44 /archaeological_finds
parent778599f6ab4cca52601e934e811769ecc32e6868 (diff)
downloadIshtar-b33503364d3a4784607871e3771973bafa00aac2.tar.bz2
Ishtar-b33503364d3a4784607871e3771973bafa00aac2.zip
Sheet find: better dating display
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html35
1 files changed, 34 insertions, 1 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index a29ecc794..f36dd6afe 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -197,7 +197,40 @@
{% if item.dating or item.dating_comment %}
<h3>{% trans "Dating" %}</h3>
- {% field_flex "Dating" item.dating %}
+{% if item.datings.count %}
+<table id='{{window_id}}-datings' class="table table-striped">
+ <tr>
+ <th>{% trans "Period" %}</th>
+ <th>{% trans "Start date" %}</th>
+ <th>{% trans "End date" %}</th>
+ <th>{% trans "Dating type" %}</th>
+ <th>{% trans "Quality" %}</th>
+ <th>{% trans "Precise dating" %}</th>
+ </tr>
+{% for dating in item.datings.all %}
+ <tr>
+ <td>
+ {{dating.period}}
+ </td>
+ <td>
+ {{dating.start_date|default_if_none:"-"}}
+ </td>
+ <td>
+ {{dating.end_date|default_if_none:"-"}}
+ </td>
+ <td>
+ {{dating.dating_type|default_if_none:"-"}}
+ </td>
+ <td>
+ {{dating.quality|default_if_none:"-"}}
+ </td>
+ <td>
+ {{dating.precise_dating|default_if_none:"-"}}
+ </td>
+ </tr>
+{% endfor %}
+</table>
+{% endif %}
{% field_flex_full "Comment on dating" item.dating_comment "<pre>" "</pre>" %}
{% endif %}