blob: a18cc9873775a29851d015e0ab93e1c061f3a114 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{% 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 %}
<ul class='form-flex'>
{% field_li_multiple "Treatment type" item.treatment_types %}
{% field_li_detail "Associated file" 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 "End 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 %}
|