diff options
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 |
commit | 0c29c68c09bf45306c02658a31e2f99581169cb1 (patch) | |
tree | 88fd6c554010303955add9a3f13c2fbce9c93e44 | |
parent | 6d6e44b1597087dc7726fd1d407433f73621928c (diff) | |
download | Ishtar-0c29c68c09bf45306c02658a31e2f99581169cb1.tar.bz2 Ishtar-0c29c68c09bf45306c02658a31e2f99581169cb1.zip |
Sheet find: better dating display
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 35 |
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 %} |