blob: 208447905369f26dad6297a17d531db49b0f838c (
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
48
|
{% extends "ishtar/sheet.html" %}
{% load i18n %}
{% block content %}
<div class='tool'>{%trans "Export as:"%} <a href='{% url show-find item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-find item.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
<h3>{% trans "Find"%}</h3>
{% if item.image %}
plouf
<img href='{{item.image.url}}' alt="{{image.label}}"/>
{% endif%}
<p><label>{%trans "Name"%}{% trans ":"%}</label>
<span class='value'>{{item.label}}</span></p>
{% if item.description %}<p><label>{%trans "Description"%}{% trans ":"%}</label>
<span class='value'>{{item.description}}</span></p>{% endif%}
<p><label>{%trans "Material type"%}{% trans ":"%}</label>
<span class='value'>{{item.material_type}}</span></p>
<p><label>{%trans "Dating"%}{% trans ":"%}</label>
<span class='value'>{{item.dating}}</span></p>
{% if item.volume %}<p><label>{%trans "Volume (l)"%}{% trans ":"%}</label>
<span class='value'>{{item.volume}}</span></p>{% endif%}
{% if item.weight %}<p><label>{%trans "Weight (g)"%}{% trans ":"%}</label>
<span class='value'>{{item.weight}}</span></p>{% endif%}
{% if item.find_number %}<p><label>{%trans "Find number"%}{% trans ":"%}</label>
<span class='value'>{{item.find_number}}</span></p>{% endif%}
{% if item.upstream_treatment %}<p><label>{%trans "Upstream treatment"%}{% trans ":"%}</label>
<span class='value'>{{item.upstream_treatment}}</span></p>{% endif%}
{% if item.downstream_treatment %}<p><label>{%trans "Downstream treatment"%}{% trans ":"%}</label>
<span class='value'>{{item.downstream_treatment}}</span></p>{% endif%}
{% if item.container %}<p><label>{%trans "Container"%}{% trans ":"%}</label>
<span class='value'>{{item.container}}</span></p>{% endif%}
<h3>{% trans "Associated base finds"%}</h3>
{% for base_find in item.base_finds.all %}
<p><label>{%trans "Complete ID"%}{% trans ":"%}</label>
<span class='value'>{{base_find.complete_id}}</span></p>
<p><label>{%trans "Related context record"%}{% trans ":"%}</label>
<span class='value'><a href="#" onclick='load_window("{% url show-contextrecord base_find.context_record.pk ''%}");'>{{ base_find.context_record }}</a></span></p>
<p><label>{%trans "Related parcel"%}{% trans ":"%}</label>
<span class='value'>{{base_find.context_record.parcel}}</span></p>
<p><label>{%trans "Related operation"%}{% trans ":"%}</label>
<span class='value'><a href="#" onclick='load_window("{% url show-operation base_find.context_record.operation.pk ''%}");'>{{ base_find.context_record.operation }}</a></span></p>
{% if forloop.counter0 %}<hr/>{% endif %}
{% endfor %}
{% endblock %}
|