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
commit7e060ac1a352ec2c290732988d8e3bacbb204c86 (patch)
tree758a052f8fd78bc2071bd4d6abb19a2c623876da /archaeological_finds/templates/ishtar/sheet_treatment.html
parente67702f06e1f9866c44df3a7e45f2739d43513f4 (diff)
downloadIshtar-7e060ac1a352ec2c290732988d8e3bacbb204c86.tar.bz2
Ishtar-7e060ac1a352ec2c290732988d8e3bacbb204c86.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 %}