summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_treatment.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-03 23:25:12 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-03 23:29:00 +0100
commitc02bcd0e6c47c2cb3ce8b9b8927e408020e3a122 (patch)
tree758a052f8fd78bc2071bd4d6abb19a2c623876da /archaeological_finds/templates/ishtar/sheet_treatment.html
parent0203ccf42cb3e8c79ea90a68f35818e4426b4d65 (diff)
downloadIshtar-c02bcd0e6c47c2cb3ce8b9b8927e408020e3a122.tar.bz2
Ishtar-c02bcd0e6c47c2cb3ce8b9b8927e408020e3a122.zip
Adapt fields/forms/wizard for treatments
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_treatment.html')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_treatment.html23
1 files changed, 18 insertions, 5 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_treatment.html b/archaeological_finds/templates/ishtar/sheet_treatment.html
index 20ea9e3c4..1dfe19844 100644
--- a/archaeological_finds/templates/ishtar/sheet_treatment.html
+++ b/archaeological_finds/templates/ishtar/sheet_treatment.html
@@ -6,18 +6,31 @@
{% block content %}
{% window_nav item window_id 'show-treatment' %}
+{% if item.image %}
+<a href='{{item.image.url}}' rel="prettyPhoto" title="{{item.label}}" class='photo'><img src='{{item.thumbnail.url}}'/></a>
+{% endif%}
+
+<p class="window-refs">{{ item.label|default:"" }}</p>
+{% if item.other_reference %}
+<p class="window-refs">{{ item.other_reference }}</p>{% endif %}
+<p class="window-refs">{{ item.year }} - {{ item.index }}</p>
+{% if item.external_id %}
+<p class="window-refs">{{ item.external_id }}</p>{% endif %}
+
<ul class='form-flex'>
- {% field_li "Treatment type" item.treatment_type %}
- {% field_li "Container" item.container %}
+ {% field_li_multiple "Treatment type" item.treatment_types %}
{% field_li "Location" item.location %}
{% field_li "Location (not referenced)" item.other_location %}
- {% field_li "Doer" item.person %}
+ {% field_li "Container" item.container %}
+ {% field_li "Responsible" item.person %}
+ {% field_li "Organization" item.organization %}
{% field_li "Start date" item.start_date %}
{% field_li "End date" item.end_date %}
</ul>
-{% if item.description or item.comment %}
-{% field "Description" item.description "<pre>" "</pre>" %}
+{% if item.description or item.comment or item.goal %}
{% field "Comment" item.comment "<pre>" "</pre>" %}
+{% field "Description" item.description "<pre>" "</pre>" %}
+{% field "Goal" item.goal "<pre>" "</pre>" %}
{% endif %}
{% trans "Upstream finds" as finds %}