summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates
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
commit75e4fda871103f74e2aaad5ad663a3a734108a80 (patch)
tree21976a27b67c98aa1a79a63f190d06dd489b89ec /archaeological_warehouse/templates
parent00d53a94deb9e7bcd232ef481fdac30269fc76d7 (diff)
downloadIshtar-75e4fda871103f74e2aaad5ad663a3a734108a80.tar.bz2
Ishtar-75e4fda871103f74e2aaad5ad663a3a734108a80.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')
-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 %}