blob: 0087eeaf6ffd2a6cc91003d803d2e7db720b4a6e (
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
|
{% extends "ishtar/sheet.html" %}
{% load i18n window_header window_field window_tables link_to_window %}
{% block head_title %}<strong>{% trans "Container" %}</strong> -
{{ item.reference|default:"" }} ({{ item.container_type|default:"" }}) - {{item.location}}
{% 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.container_type|default:"" }} {{ item.reference|default:"" }}</p>
<p class="window-refs">{{ item.location.name }} - {{ item.index }}</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 %}
<dl class="col-12 flex-wrap">
<dt>{% trans "Location" %}</dt>
<dd>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{% for loca in item.get_localisations %}
<li class="breadcrumb-item">
{{loca.short_label}} {{loca|simple_link_to_window}}
</li>
{% endfor %}
</ol>
</nav>
</dd>
</dl>
{% include "ishtar/blocks/sheet_creation_section.html" %}
{% field_flex "Old reference" item.old_reference %}
{% field_flex_full "Comment" item.comment "<pre>" "</pre>" %}
{% include "ishtar/blocks/sheet_json.html" %}
</div>
</div>
{% with item.container_type as container_type %}
{% if container_type.length or container_type.width or container_type.height or container_type.volume or container_type.reference %}
<h4>{% trans "Container type" %}</h4>
<div class='row'>
{% field_flex "Length (mm)" container_type.length %}
{% field_flex "Width (mm)" container_type.width %}
{% field_flex "Height (mm)" container_type.height %}
{% field_flex "Volume (l)" container_type.volume %}
{% field_flex "Reference" container_type.reference %}
</div>
{% endif %}
{% endwith %}
{% if item.container_content.count or item.children.count %}
<h4>{% trans "Content" %}</h4>
{% if item.children.count %}
{% trans "Containers" as container_lbl %}
{% dynamic_table_document container_lbl 'containers' 'parent' item.pk 'TABLE_COLS' output 'large' %}
{% endif %}
{% if item.container_content.count %}
{% trans "Finds" as finds_lbl %}
{% dynamic_table_document finds_lbl 'finds_inside_container' 'container' item.pk 'TABLE_COLS' output 'large' %}
{% endif %}
{% endif %}
{% if PROFILE.locate_warehouses %}
{% 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 %}
{% endif %}
{% endblock %}
|