summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates/ishtar
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse/templates/ishtar')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_container.html7
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_warehouse.html44
-rw-r--r--archaeological_warehouse/templates/ishtar/wizard/wizard_containerlocalisation.html13
-rw-r--r--archaeological_warehouse/templates/ishtar/wizard/wizard_warehouse_divisions.html11
4 files changed, 73 insertions, 2 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_container.html b/archaeological_warehouse/templates/ishtar/sheet_container.html
index 172719604..7845da2c1 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_container.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_container.html
@@ -6,14 +6,19 @@
{% block content %}
{% window_nav item window_id 'show-container' 'container_modify' '' '' previous next 1 %}
+{% if item.image %}
+<a href='{{item.image.url}}' rel="prettyPhoto" title="{{item.label}}" class='photo'><img src='{{item.thumbnail.url}}'/></a>
+{% endif%}
+
<p class="window-refs">{{ item.reference|default:"" }}</p>
<p class="window-refs">{{ item.container_type|default:"" }}</p>
+<p class="window-refs">{{ item.responsible.name }} - {{ item.index }}</p>
{% include "ishtar/blocks/sheet_external_id.html" %}
<ul class='form-flex'>
{% field_li_detail "Responsible warehouse" item.responsible %}
- {% include "ishtar/blocks/sheet_creation_section.html" %}
{% field_li_detail "Location (warehouse)" item.location %}
+ {% include "ishtar/blocks/sheet_creation_section.html" %}
</ul>
{% field "Location" item.precise_location %}
{% field "Comment" item.comment "<pre>" "</pre>" %}
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 %}
diff --git a/archaeological_warehouse/templates/ishtar/wizard/wizard_containerlocalisation.html b/archaeological_warehouse/templates/ishtar/wizard/wizard_containerlocalisation.html
index 4a21368ae..41be02748 100644
--- a/archaeological_warehouse/templates/ishtar/wizard/wizard_containerlocalisation.html
+++ b/archaeological_warehouse/templates/ishtar/wizard/wizard_containerlocalisation.html
@@ -1,7 +1,18 @@
{% extends "ishtar/wizard/default_wizard.html" %}
{% load i18n %}
+{% load url from future %}
{% block form_head %}
{% if not wizard.form.fields %}
-<p class='warning'>{% trans "No division set for this warehouse. Define it to localise container in this warehouse." %}</p>
+<p class="alert">
+ <i class="fa fa-exclamation-triangle"></i>
+ {% trans "No division set for this warehouse. Define at least one division to localise containers in this warehouse." %}<br/>
+ {{wizard.form.warehouse}}
+ <a href="{% url 'warehouse_modify' wizard.form.warehouse.pk %}">
+ <span class="fa-stack fa-lg">
+ <i class="fa fa-circle fa-stack-2x"></i>
+ <i class="fa fa-pencil fa-stack-1x fa-inverse"></i>
+ </span>
+ </a>
+</p>
{% endif %}
{% endblock %}
diff --git a/archaeological_warehouse/templates/ishtar/wizard/wizard_warehouse_divisions.html b/archaeological_warehouse/templates/ishtar/wizard/wizard_warehouse_divisions.html
new file mode 100644
index 000000000..83dbfc0fe
--- /dev/null
+++ b/archaeological_warehouse/templates/ishtar/wizard/wizard_warehouse_divisions.html
@@ -0,0 +1,11 @@
+{% extends "ishtar/wizard/default_wizard.html" %}
+{% load i18n %}
+{% load url from future %}
+{% block form_head %}
+{% if wizard.form.readonly %}
+<p class="alert">
+ <i class="fa fa-exclamation-triangle"></i>
+ {% trans "Containers with localisation are associated to this warehouse. You cannot change divisions." %}<br/>
+</p>
+{% endif %}
+{% endblock %}