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 | b33503364d3a4784607871e3771973bafa00aac2 (patch) | |
| tree | 88fd6c554010303955add9a3f13c2fbce9c93e44 | |
| parent | 778599f6ab4cca52601e934e811769ecc32e6868 (diff) | |
| download | Ishtar-b33503364d3a4784607871e3771973bafa00aac2.tar.bz2 Ishtar-b33503364d3a4784607871e3771973bafa00aac2.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 %} | 
