blob: d8d5549b694296c159e6b9acc315aaf0ecfe3bb7 (
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
|
{% 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 %}
</div>
<div class="col text-muted">
{% include "ishtar/blocks/sheet_external_id.html" %}
</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 "Periods" item 'periods' %}
{% field_flex_multiple_obj "Remains" item 'remains' %}
{% field_flex_multiple_obj "Cultural attributions" item 'cultural_attributions' %}
{% field_flex_multiple "Collaborators" item.collaborators %}
{% field_flex_full "Comment" item.comment "<pre>" "</pre>" %}
{% include "ishtar/blocks/sheet_creation_section.html" %}
</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_full "Towns" item.towns_codes|join:" ; " %}
{% endif %}
{% 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 %}
{% dynamic_table_document operations 'operations' 'archaeological_sites' item.pk '' output %}
{% endif %}
{% if item.finds.count %}
{% 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 %}
{% 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 %}
{% endwith %} {% endwith %} {% endwith %}
{% endblock %}
|