summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
blob: 410108a52dd6e51e9b0c6f754ca369cf4eaf573b (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
{% 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' '' '' '' 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 %}

{% endblock %}