summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates/ishtar/sheet_container.html
blob: f40020a92ad298b322af285c15f7f75823355562 (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
{% extends "ishtar/sheet.html" %}
{% load i18n window_header window_field window_tables %}

{% block head_title %}<strong>{% trans "Container" %}</strong> - {{ item.reference|default:"" }} ({{ item.container_type|default:"" }}){% endblock %}

{% block toolbar %}
{% window_nav item window_id 'show-container' 'container_modify' '' '' previous next 1 %}
{% endblock %}

{% block content %}
<div class="clearfix">
    {% if item.main_image %}
    <div class="card float-left col-12 col-md-4">
        {% include "ishtar/blocks/window_image.html" %}
    </div>
    {% endif %}
    {% if item.main_image %}
    <div class="float-left col-12 col-md-6 col-lg-8 text-center">{# </div>> #}
    {% else %}
    <div class="float-left col-6 col-md-3 text-center">
    {% endif %}
        <p class="window-refs">{{ item.reference|default:"" }}</p>
        <p class="window-refs">{{ item.container_type|default:"" }}</p>
        <p class="window-refs">{{ item.responsible.name }} - {{ item.index }}</p>
        <p class="window-refs">{{ item.old_reference|default:"" }}</p>
        {% include "ishtar/blocks/sheet_external_id.html" %}
    </div>
    {% if item.main_image %}
    <div class="row float-left col-12 col-md-6 col-lg-8 text-center">{# </div>> #}
    {% else %}
    <div class="float-left row col-6 col-md-8">
    {% endif %}
        {% field_flex_detail "Responsible warehouse" item.responsible %}
        {% field_flex_detail "Location (warehouse)" item.location %}
        {% include "ishtar/blocks/sheet_creation_section.html" %}
        {% field_flex "Location" item.precise_location %}
        {% field_flex_full "Comment" item.comment "<pre>" "</pre>" %}
        {% include "ishtar/blocks/sheet_json.html" %}
    </div>
</div>

{% if item.point_2d or item.multi_polygon %}
<h3>{% trans "Localisation"%}</h3>
<div class='row'>
    {% with geo_item=item %}
    {% include "ishtar/blocks/sheet_simple_map.html"%}
    <div class="col-12 col-lg-6 flex-wrap">
        {% include "ishtar/blocks/sheet_coordinates.html"%}
    </div>
    {% endwith %}
</div>
{% endif %}


{% if item.finds.count %}
<h4>{% trans "Content" %}</h4>
{% dynamic_table_document finds 'finds' 'container' item.pk 'TABLE_COLS' output 'large' %}
{% endif %}

{% if item.finds_ref.count %}
<h4>{% trans "Reference content" %}</h4>
{% dynamic_table_document finds 'finds' 'container_ref' item.pk 'TABLE_COLS' output 'large' %}
{% endif %}

{% endblock %}