diff options
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
| -rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index c5bd637a5..3047b7e87 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -1,5 +1,5 @@ {% extends "ishtar/sheet.html" %} -{% load i18n %} +{% load i18n window_field %} {% block head_sheet %} {{block.super}} @@ -28,29 +28,32 @@ <a href='{{item.image.url}}' rel="prettyPhoto" title="{{item.label}}"><img src='{{item.thumbnail.url}}'/></a> {% endif%} -{% if item.label %}<p><label>{%trans "Name"%}{% trans ":"%}</label> -<span class='value'>{{item.label}}</span></p>{% endif %} -{% if item.description %}<p><label>{%trans "Description"%}{% trans ":"%}</label> -<span class='value'>{{item.description}}</span></p>{% endif%} -<p><label>{%trans "Created by:"%}</label> <span class='value'>{{ item.history_creator.ishtaruser.full_label }}</span></p> -<p><label>{%trans "Material type"%}{% trans ":"%}</label> -<span class='value'>{{item.material_type}}</span></p> -{% if item.dating %}<p><label>{%trans "Dating"%}{% trans ":"%}</label> -<span class='value'>{{item.dating}}</span></p>{% endif %} -{% if item.volume %}<p><label>{%trans "Volume (l)"%}{% trans ":"%}</label> -<span class='value'>{{item.volume}}</span></p>{% endif%} -{% if item.weight %}<p><label>{%trans "Weight"%}{% trans ":"%}</label> -<span class='value'>{{item.weight}} {% if item.weight_unit %}{{item.weight_unit}}{% else %}g{% endif %}</span></p>{% endif%} -{% if item.find_number %}<p><label>{%trans "Find number"%}{% trans ":"%}</label> -<span class='value'>{{item.find_number}}</span></p>{% endif%} - -{% if item.conservatory_state %} -<p><label>{%trans "Conservatory state"%}{% trans ":"%}</label> -<span class='value'>{{item.conservatory_state}}</span></p> -{% endif %} -{% if item.preservation_to_consider %} -<p><label>{%trans "Type of preservation to consider"%}{% trans ":"%}</label> -<span class='value'>{{item.preservation_to_consider}}</span></p> +{% field "Name" item.label %} +{% field "Description" item.description %} +{% field "Created by" item.history_creator.ishtaruser.full_label %} +{% field "Material type" item.material_type %} +{% field "Dating" item.dating %} +{% field "Length (cm)" item.length %} +{% field "Width (cm)" item.width %} +{% field "Height (cm)" item.height %} +{% field "Diameter (cm)" item.diameter %} +{% field "Volume (l)" item.volume %} + +{% if item.weight %}{% with item.weight|add:' '|add:item.weight_unit as weight %} +{% field "Weight" weight %} +{% endwith %}{% endif %} + +{% field "Find number" item.find_number %} +{% field "Conservatory state" item.conservatory_state %} +{% field "Type of preservation to consider" item.preservation_to_consider %} + +{% if item.object_types.count %} +<p> + <label>{% trans "Object types" %}</label> + <span class='value'>{% for object_type in item.object_types.all %} + {% if forloop.counter0 %}, {% endif %}{{ object_type }} + {% endfor %}</span> +</p> {% endif %} {% if item.upstream_treatment %}<p><label>{%trans "Upstream treatment"%}{% trans ":"%}</label> |
