summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_treatmentfile.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-10 00:26:07 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-10 00:26:07 +0100
commitc0f14049777002bf0849f04dabc99a6bc66de295 (patch)
tree777c2f1bcfc1cde0056a64b04d0ee322948ade56 /archaeological_finds/templates/ishtar/sheet_treatmentfile.html
parent229a5559e9933ea76020963ca3778906d39279d4 (diff)
parent1191cb323ca087ea05d5f58acb555b8e2d266801 (diff)
downloadIshtar-c0f14049777002bf0849f04dabc99a6bc66de295.tar.bz2
Ishtar-c0f14049777002bf0849f04dabc99a6bc66de295.zip
Merge branch 'master' into v0.9
Conflicts: archaeological_files/migrations/0014_auto__add_field_file_requested_operation_type__add_field_file_organiza.py
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_treatmentfile.html')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_treatmentfile.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_treatmentfile.html b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html
new file mode 100644
index 000000000..097f5defd
--- /dev/null
+++ b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html
@@ -0,0 +1,50 @@
+{% extends "ishtar/sheet.html" %}
+{% load i18n window_field from_dict link_to_window window_tables window_header humanize %}
+{% load url from future %}
+
+{% block head_title %}{% trans "Treatment request" %}{% endblock %}
+{% block content %}
+{% window_nav item window_id 'show-treatmentfile' 'treatmentfile_modify' %}
+
+<p class="window-refs">{{ item.name|default:"" }}</p>
+{% if item.internal_reference %}
+<p class="window-refs">{{ item.internal_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 %}
+{% if item.end_date %}
+<p class="window-refs">{% trans "Closed" context "Treatment request" %} ({{item.end_date}})</p>
+{% else %}
+<p class="window-refs">{% trans "Active" context "Treatment request" %}</p>
+{% endif %}
+
+<ul class='form-flex'>
+ {% field_li "Type" item.type %}
+ {% field_li_detail "Responsible" item.in_charge %}
+ {% field_li "Creation date" item.creation_date %}
+ {% field_li "Reception date" item.reception_date %}
+ {% field_li "Closing date" item.end_date %}
+</ul>
+{% field "Comment" item.comment "<pre>" "</pre>" %}
+
+{% if item.applicant %}
+<h3>{% trans "Applicant" %}</h3>
+<ul class='form-flex'>
+ {% field_li_detail "Name" item.applicant %}
+</ul>
+{% field "Contact" item.applicant.address_lbl %}
+{% endif %}
+{% if item.applicant_organisation %}
+<h3>{% trans "Applicant organisation" %}</h3>
+<ul class='form-flex'>
+ {% field_li_detail "Name" item.applicant_organisation %}
+</ul>
+{% field "Contact" item.applicant.address_lbl %}
+{% endif %}
+
+{% trans "Treatments" as treatments %}
+{% if item.treatments.count %}
+{% dynamic_table_document treatments 'treatments' 'file' item.pk '' output '' 'treatment' %}
+{% endif %}
+
+{% endblock %}