blob: 57f1c00fc9a78bcc8e4142206652578c240b466b (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
{% extends "sheet.html" %}
{% load i18n %}
{% block content %}
<h3>{% trans "General"%}</h3>
<p><label>{%trans "Year:"%}</label> {{ item.year }}</p>
<p><label>{%trans "Numerical reference:"%}</label> {{ item.numeric_reference }}</p>
<p><label>{%trans "File's name:"%}</label> {{ item.internal_reference }}</p>
<p><label>{%trans "Edition date:"%}</label> {{ item.history.all.0.history_date }}</p> <!-- date = now -->
{% if item.reception_date %}<p><label>{%trans "Reception date:"%}</label> {{ item.reception_date }}</p>{% endif %}
<p><label>{%trans "Creation date:"%}</label> {{ item.creation_date }}</p>
{% comment %}
{% if item.deadline_date and not item.acts %}
<p>{%trans "Deadline"%} : {% item.deadline_date %}</p> <!-- calculated deadline for some preventive files , see saisine_type, not displayed if an act as been send -->
{% endif %}
{% endcomment %}
<p><label>{%trans "In charge:"%}</label> {{ item.in_charge.full_label }}</p>
<p><label>{%trans "State"%}</label>
{% if item.is_active %}{%trans "Active file"%}</strong></p>
{% else %}{%trans "Closed file"%}</p>
<p><label>{%trans "Closing date:"%}</label> {{ item.closing.date }} <strong>{%trans "by" %}</strong> {{ item.closing.user }}</p>
{% endif %}
<p><label>{%trans "Type:"%}</label> {{ item.file_type }}</p>
{% if item.related_file %}<p>{%trans "Related file:"%} {{ item.related_file }}</p>{% endif %} <!-- Displayed as Year/index/Commune/Common_name This should be a link to the file sheet of the related file -->
<p><label>{%trans "Comment:"%}</label> {{ item.comment }}</p>
<h3>{% trans "Localisation"%}</h3>
<p><label>{%trans "Towns:"%}</label> {{ item.towns.all|join:", " }}</p>
<p><label>{%trans "Main address:"%}</label> {{ item.address }}</p>
<p><label>{%trans "Complement:"%}</label> {{ item.complem_adress }}</p>
<p><label>{%trans "Postal code:"%}</label> {{ item.postal_code }}</p>
<p><label>{%trans "Surface:"%}</label> {{ item.total_surface }} m<sup>2</sup> ({{ item.total_surface_ha }} ha)</p>
{% if item.is_preventive %}
<h3>{% trans "Preventive archaelogical file"%}</h3>
<p><label>{%trans "Planed surface:"%}</label> {{ item.total_developed_surface }} m<sup>2</sup> ({{ item.total_developed_surface_ha }} ha)</p>
<p><label>{%trans "Saisine type:"%}</label> {{ item.saisine_type }}</p>
{% if item.town_planning_service %}<p><label>{%trans "Town planning service:"%}</label>{{ item.town_planning_service }}</p>{% endif %}
{% if item.permit_type %}<p><label>{%trans "Permit type:"%}</label> {{ item.permit_type }}</p>{% endif %}
{% if item.permit_reference %}<p><label>{%trans "Permit reference:"%}</label> {{ item.permit_reference }}</p>{% endif %}
{% if item.general_contractor.attached_to %}<p><label>{%trans "General contractor organisation:"%}</label> {{ item.general_contractor.attached_to }}</p>{% endif %} <!-- Contractor's organisation displayed as concat of Name/Adress/postal_code/city -->
{% if item.general_contractor %}<p><label>{%trans "General contractor:"%}</label> {{ item.general_contractor.full_label }}</p>{% endif %}
{% comment %}
<p>{%trans "Numerical reference"%} : {% item.index %}</p> <!-- index -->
{% endcomment %}
{% endif %}
{% if item.administrative_act.all %}
<table>
<caption>{%trans "Admninistrative acts"%}</caption>
<tr>
<th>{% trans "Year" %}</th>
<th>{% trans "Reference" %}</th>
<th>{% trans "Type" %}</th>
<th>{% trans "Date" %}</th>
</tr>
{% for act in item.administrative_act.all %}
<tr>
<td>{{act.signature_date.year}}</td>
<td>{{act.ref_sra}}</td>
<td>{{act.act_type}}</td>
<td>{{act.signature_date}}</td>
</tr>
{% endfor %}
</table>
{%endif%}
{% comment %}
<!-- associated operations -->
<table class='adm_ope'> <!-- associated ope class-->
<caption>{%trans "Associated operations"%}</caption>
<tr>
{% for label, in item.data_ope %}
<th>{{label}}</th>
{% endfor %}
</tr>
{% for data, in item.data_ope %}
<tr>
<td>{{year}}</td>
<td>{{reference}}</td>
<td>{{patriarche}}</td>
<td>{{type}}</td>
<td>{{head_scientist}}</td>
<td>{{date_debut}}</td>
<td>{{date_fin}}</td>
<td>{{link_to_ope_sheet}}</td>
</tr>
{% endfor %}
</table>
<!-- Operation's associated acts -->
<table class='adm_acts'> <!-- associated acts class-->
<caption>{%trans "Admninistrative acts linked to associated operations"%}</caption>
<tr>
{% for label, in item.ope.data_acts %}
<th>{{label}}</th>
{% endfor %}
</tr>
{% for data, in item.ope.data_acts %}
<tr>
<td>{{year}}</td>
<td>{{reference}}</td>
<td>{{type}}</td>
<td>{{date}}</td>
</tr>
{% endfor %}
</table>
{% endcomment %}
{% endblock %}
|