diff options
| 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 |
| commit | c0f14049777002bf0849f04dabc99a6bc66de295 (patch) | |
| tree | 777c2f1bcfc1cde0056a64b04d0ee322948ade56 /archaeological_finds/templates/ishtar/sheet_treatment.html | |
| parent | 229a5559e9933ea76020963ca3778906d39279d4 (diff) | |
| parent | 1191cb323ca087ea05d5f58acb555b8e2d266801 (diff) | |
| download | Ishtar-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_treatment.html')
| -rw-r--r-- | archaeological_finds/templates/ishtar/sheet_treatment.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_treatment.html b/archaeological_finds/templates/ishtar/sheet_treatment.html new file mode 100644 index 000000000..9ec9db754 --- /dev/null +++ b/archaeological_finds/templates/ishtar/sheet_treatment.html @@ -0,0 +1,53 @@ +{% 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" %}{% endblock %} +{% block content %} +{% window_nav item window_id 'show-treatment' 'treatment_modify' %} + +{% 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 %} +{% if item.end_date %} +<p class="window-refs">{% trans "Closed" context "Treatment" %} ({{item.end_date}})</p> +{% else %} +<p class="window-refs">{% trans "Active" context "Treatment" %}</p> +{% endif %} + +<ul class='form-flex'> + {% field_li_multiple "Treatment type" item.treatment_types %} + {% field_li "State" item.treatment_state %} + {% field_li_detail "Associated request" item.file %} + {% field_li "Location" item.location %} + {% field_li "Container" item.container %} + {% field_li "Responsible" item.person %} + {% field_li "Organization" item.organization %} + {% field_li "Start date" item.start_date %} + {% field_li "Closing date" item.end_date %} +</ul> +{% 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 %} +{% if item.upstream.count %} +{% dynamic_table_document finds 'finds_for_treatment' 'downstream_treatment' item.pk 'TABLE_COLS_FOR_OPE' output %} +{% endif %} + +{% trans "Downstream finds" as finds %} +{% if item.downstream.count %} +{% dynamic_table_document finds 'finds_for_treatment' 'upstream_treatment' item.pk 'TABLE_COLS_FOR_OPE' output %} +{% endif %} + + +{% endblock %} |
