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

{% block head_title %}{% trans "Warehouse" %}{% endblock %}

{% block content %}
{% window_nav item window_id 'show-warehouse' 'warehouse_modify' '' '' previous next 1 %}

<p class="window-refs">{{ item.name|default:"" }}</p>
<p class="window-refs">{{ item.warehouse_type|default:"" }}</p>
{% include "ishtar/blocks/sheet_external_id.html" %}

<ul class='form-flex'>
    {% field_li "Person in charge" item.person_in_charge %}
    {% include "ishtar/blocks/sheet_creation_section.html" %}
</ul>
{% field "Comment" item.comment "<pre>" "</pre>" %}

{% if item.containers.count %}
<h4>{% trans "Containers" %}</h4>
{% dynamic_table_document '' 'containers' 'location' item.pk 'TABLE_COLS' output %}
{% endif %}

{% if item.owned_containers.count %}
<h4>{% trans "Attached containers" %}</h4>
{% dynamic_table_document '' 'containers' 'responsible' item.pk 'TABLE_COLS' output %}
{% endif %}

<h3>{% trans "Statistics" %}</h3>
<small class="centered"><em>{% trans "These numbers are updated hourly" %}</em></small>

<h4>{% trans "Finds" %}</h4>
<ul class='form-flex'>
    {% field_li "Number of attached finds" item.number_of_finds %}
    {% field_li "Number of hosted finds" item.number_of_finds_hosted %}
</ul>

{% if item.number_of_finds_by_place %}
<h4>{% trans "Finds by location in the warehouse" %}</h4>
<ul class='form-flex'>
    {% for items in item.number_of_finds_by_place %}
    <li>
        <table class='clean-table small'>
            {% for item in items %}
                <tr><th>{{item.0}}</th><td>{{item.1}}</td></tr>
            {% endfor %}
        </table>
    </li>
    {% endfor %}
</ul>
{% endif %}

<h4>{% trans "Containers" %}</h4>
<ul class='form-flex'>
    {% field_li "Number of containers" item.number_of_containers %}
</ul>

{% if item.number_of_containers_by_place %}
<h4>{% trans "Containers by location in the warehouse" %}</h4>
<ul class='form-flex'>
    {% for items in item.number_of_containers_by_place %}
    <li>
        <table class='clean-table small'>
            {% for item in items %}
            <tr><th>{{item.0}}</th><td>{{item.1}}</td></tr>
            {% endfor %}
        </table>
    </li>
    {% endfor %}
</ul>
{% endif %}

{% endblock %}