diff options
Diffstat (limited to 'archaeological_warehouse/templates/ishtar/sheet_warehouse.html')
-rw-r--r-- | archaeological_warehouse/templates/ishtar/sheet_warehouse.html | 84 |
1 files changed, 46 insertions, 38 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html index de93f9af3..03a8eec5c 100644 --- a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html +++ b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html @@ -1,23 +1,39 @@ {% extends "ishtar/sheet.html" %} {% load i18n window_header window_field window_tables %} -{% block head_title %}{% trans "Warehouse" %}{% endblock %} +{% block head_title %}<strong>{% trans "Warehouse" %}</strong> - {{item.name}} ({{item.warehouse_type}}){% endblock %} +{% block toolbar %} +{% window_nav item window_id 'show-warehouse' 'warehouse_modify' '' '' previous next 1 %} +{% 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" %} +<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"> + {% if item.image %} + <img class='card-img-top' src="{{item.thumbnail.url}}"> + {% endif%} + <div class="card-body"> + <p class="card-text"> + <p class="window-refs">{{ item.name|default:"" }}</p> + <p class="window-refs">{{ item.warehouse_type|default:"" }}</p> + {% include "ishtar/blocks/sheet_external_id.html" %} + </p> + </div> + </div> + </div> +</div> + -<ul class='form-flex'> - {% field_li "Person in charge" item.person_in_charge %} +<div class='row'> + {% field_flex "Person in charge" item.person_in_charge %} {% include "ishtar/blocks/sheet_creation_section.html" %} -</ul> -{% include "ishtar/blocks/sheet_address_section.html" %} -{% field "Comment" item.comment "<pre>" "</pre>" %} + {% include "ishtar/blocks/sheet_address_section.html" %} + {% field_flex_full "Comment" item.comment "<pre>" "</pre>" %} + {% include "ishtar/blocks/sheet_json.html" %} +</div> -{% include "ishtar/blocks/sheet_json.html" %} {% if item.containers.count %} <h4>{% trans "Containers" %}</h4> @@ -33,44 +49,36 @@ <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> +<div class='row'> + {% field_flex_2 "Number of attached finds" item.number_of_finds %} + {% field_flex_2 "Number of hosted finds" item.number_of_finds_hosted %} +</div> {% 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> +{% for items in item.number_of_finds_by_place %} +<table class='table table-striped'> + {% for item in items %} + <tr><th>{{item.0}}</th><td>{{item.1}}</td></tr> {% endfor %} -</ul> +</table> +{% endfor %} {% endif %} <h4>{% trans "Containers" %}</h4> -<ul class='form-flex'> - {% field_li "Number of containers" item.number_of_containers %} -</ul> +<div class='row'> + {% field_flex_2 "Number of containers" item.number_of_containers %} +</div> {% 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> +{% for items in item.number_of_containers_by_place %} +<table class='table table-striped'> + {% for item in items %} + <tr><th>{{item.0}}</th><td>{{item.1}}</td></tr> {% endfor %} -</ul> +</table> +{% endfor %} {% endif %} {% endblock %} |