summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates/ishtar/sheet_site.html
blob: 0108d3db6b1e0a48887549af845601c96ba75753 (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
{% extends "ishtar/sheet.html" %}
{% load i18n window_tables window_header window_ope_tables window_field from_dict %}

{% block head_title %}<strong>{{SITE_LABEL}}</strong> - {{item}}{% endblock %}

{% block toolbar %}
{% window_nav item window_id 'show-site' 'site_modify' 'show-historized-site' 'revert-site' previous next 1 %}
{% endblock %}

{% block content %}

<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:''}}
                </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">
    {% include "ishtar/blocks/sheet_creation_section.html" %}
    {% field_flex_multiple "Periods" item.periods %}
    {% field_flex_multiple "Remains" item.remains %}
    {% field_flex_multiple "Collaborators" item.collaborators %}
    {% field_flex_full "Comment" item.comment "<pre>" "</pre>" %}
</div>

{% if item.towns.count or item.locality_ngi or item.locality_cadastral %}
<h3>{% trans "Localisation"%}</h3>
<div class="row">
    {% field_flex_full "Towns" item.towns_codes|join:" ; "  %}
    {% field_flex_full "National Geographic Institute locality" item.locality_ngi "<pre>" "</pre>" %}
    {% field_flex_full "Cadastral locality" item.locality_cadastral "<pre>" "</pre>" %}
</div>
{% endif %}

{% 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 %}

{% 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 %}

{% trans "Finds" as finds %}
{% dynamic_table_document finds 'finds' 'base_finds__context_record__archaeological_site' item.pk '' output %}

{% endblock %}