summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-05 11:33:54 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-05 11:33:54 +0200
commit2e512bc9dffca5624342aa75ca01b3ff7f390141 (patch)
tree21976a27b67c98aa1a79a63f190d06dd489b89ec /archaeological_warehouse/templates/ishtar/sheet_warehouse.html
parent3a5dbf688d058bd39aaae308cd7224ddd42c7890 (diff)
downloadIshtar-2e512bc9dffca5624342aa75ca01b3ff7f390141.tar.bz2
Ishtar-2e512bc9dffca5624342aa75ca01b3ff7f390141.zip
Warehouse sheet: provide statistics (refs #3398)
- Number of finds (total and by places) - Number of container (total and by places)
Diffstat (limited to 'archaeological_warehouse/templates/ishtar/sheet_warehouse.html')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_warehouse.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
index c31fc93b4..17a2c6c2b 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
@@ -26,4 +26,48 @@
{% dynamic_table_document '' 'containers' 'responsible' item.pk 'TABLE_COLS' output %}
{% endif %}
+<h3>{% trans "Statistics" %}</h3>
+<small class="centered"><em>{% trans "Theses number 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 %}