summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates/ishtar/sheet_site.html
blob: 87bec9bd7d40507c411cbcf34f5fe0aa9d836118 (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
{% 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 %}
{%comment%}
{% window_nav item window_id 'show-site' 'site_modify' 'show-historized-site' 'revert-site' previous next 1 %}
{%endcomment%}

{% window_nav item window_id 'show-site' 'site_modify' %}
{% 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}}
                </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 %}
</div>

{% if not next %}
{% if item.towns.count %}
<h3>{% trans "Localisation"%}</h3>
<div class="row">
    {% field_flex_full "Towns" item.towns_codes|join:" ; "  %}
</div>
{% endif %}
{% endif %}

{% trans "Operations" as operations %}
{% if item.operations.count %}
{% dynamic_table_document operations 'operations' 'archaeological_sites' item.pk '' output %}
{% endif %}
{% endblock %}