blob: 8b7a0f15257f0de596ab91b865c599b397fd9f0e (
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
{% extends "ishtar/sheet.html" %}
{% load i18n ishtar_helpers window_tables window_header window_ope_tables window_field from_dict %}
{% block head_title %}<strong>{{SITE_LABEL}}</strong> - {{item.cached_label}}{% endblock %}
{% block toolbar %}
{% window_nav item window_id 'show-site' 'site_modify' 'show-historized-site' 'revert-site' previous next 1 %}
{% endblock %}
{% block content %}
{% with permission_change_own_geovectordata=permission_change_own_geovectordata %}
{% with permission_change_geovectordata=permission_change_geovectordata %}
{% with permission_change_geo=permission_change_own_geovectordata|or_:permission_change_geovectordata %}
<div class="row">
<div class="offset-lg-4 col-lg-4 offset-md-3 col-md-6 offset-sm-1 col-sm-10 col-12">
<div class="card">
{% include "ishtar/blocks/window_image.html" %}
<div class="card-body">
<div class="row">
<div class="col main">
{{item.reference}}
{{item.name|default:''}}
{% if item.complete_identifier %}<p class="window-refs"
title="{% trans 'Complete identifier' %}">
<strong>{{ item.complete_identifier }}</strong></p>{% endif %}
<p class="col text-muted">
{% include "ishtar/blocks/sheet_external_id.html" %}
</p>
</div>
</div>
<p class="card-text">
</p>
</div>
</div>
</div>
</div>
<h3>{% trans "General"%}</h3>
<div class="row">
{% field_flex "Other reference" item.other_reference %}
{% field_flex_multiple_obj _("Types") item 'types' %}
{% field_flex _("Discovery status") item.discovery_status %}
{% field_flex _("Current status") item.current_status %}
{% field_flex _("Nature of site") item.nature_of_site %}
{% field_flex _("Interpretation level") item.interpretation_level %}
{% field_flex_multiple_obj "Periods" item 'periods' %}
{% field_flex_multiple_obj "Remains" item 'remains' %}
{% field_flex_multiple_obj "Cultural attributions" item 'cultural_attributions' %}
{% field_flex_detail _("Discoverer") item.discoverer %}
{% field_flex_multiple "Collaborators" item.collaborators %}
{% if item.description == item.public_description %}
{% field_flex_full _("Description/Public description") item.description "<pre>" "</pre>" %}
{% else %}
{% field_flex_full _("Description") item.description "<pre>" "</pre>" %}
{% field_flex_full _("Public description") item.public_description "<pre>" "</pre>" %}
{% endif %}
{% field_flex_full "Comment" item.comment "<pre>" "</pre>" %}
</div>
{% if item.affmar_number or item.drassm_number or item.oceanographic_service_localisation or item.shipwreck_code or item.sinking_date or item.discovery_area or item.shipwreck_name %}
<h3>{% trans "Underwater"%}</h3>
<div class="row">
{% field_flex "Numéro AffMar" item.affmar_number %}
{% field_flex "Numéro DRASSM" item.drassm_number %}
{% field_flex "Shipwreck name" item.shipwreck_name %}
{% field_flex "Shipwreck code" item.shipwreck_code %}
{% field_flex "Sinking date" item.sinking_date %}
{% field_flex_full "Discovery area" item.discovery_area "<pre>" "</pre>" %}
{% field_flex_full "Oceanographic service localisation" item.oceanographic_service_localisation "<pre>" "</pre>" %}
</div>
{% endif %}
{% if item.x or item.towns.count or item|m2m_listing:'towns' or item.locality_ngi or item.locality_cadastral %}
<h3>{% trans "Geographic localisation" %}</h3>
<div class="row">
{% with geo_item=item %}
{% include "ishtar/blocks/sheet_map.html"%}
{% endwith %}
</div>
<div class="row">
{% if next %}
{% field_flex_full "Towns" item|m2m_listing:'towns'|join:" ; " %}
{% else %}
{% field_flex_detail_multiple_full "Towns" item.towns %}
{% endif %}
{% field_flex_full _("Address") item.precise_locality "<pre>" "</pre>" %}
{% field_flex_full "National Geographic Institute locality" item.locality_ngi "<pre>" "</pre>" %}
{% field_flex_full "Cadastral locality" item.locality_cadastral "<pre>" "</pre>" %}
</div>
{% endif %}
{% include "ishtar/blocks/sheet_json.html" %}
{% trans "Operations" as operations %}
{% if item.operations.count and not item.operations_not_available %}
{% dynamic_table_document operations 'operations' 'archaeological_sites' item.pk '' output %}
{% endif %}
{% trans "Context records" as cr_label %}
{% if item.context_records.count %}
{% dynamic_table_document cr_label 'context_records' 'archaeological_sites' item.pk '' output %}
{% endif %}
{% if item.finds.count and not item.finds_not_available %}
{% trans "Finds" as finds %}
{% dynamic_table_document finds 'finds' 'base_finds__context_record__archaeological_site' item.pk '' output %}
{% endif %}
{% trans "Documents" as docs %}
{% if permission_view_own_document or permission_view_document %}
{% if item.documents.count and not item.documents_not_available %}
{% dynamic_table_document docs 'documents' 'sites' item.pk '' output %}
{% endif %}
{% endif %}
{% if not is_external and SHOW_GEO %}
<h3>{% trans "Geographic data" %}</h3>
{% with geo_item=item %}{% include "ishtar/blocks/sheet_geographic.html" %}{% endwith %}
{% endif %}
{% if not is_external %}
{% if item.history_creator or item.last_edition_date or item.created %}
<h3>{% trans "Sheet"%}</h3>
<div class="row">
{% include "ishtar/blocks/sheet_creation_section.html" %}
</div>
{% endif %}
{% endif %}
{% endwith %} {% endwith %} {% endwith %}
{% endblock %}
|