summaryrefslogtreecommitdiff
path: root/ishtar/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-09-13 12:44:02 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-09-13 12:44:02 +0200
commit8ecbf128f997441ccaf1168080b09bedcbf04c64 (patch)
tree142dde68511f003eb96a03b79db18bf9c25b7ce8 /ishtar/templates
parent5c1f4bfaecbda1c6585b299a1c559a799b253423 (diff)
downloadIshtar-8ecbf128f997441ccaf1168080b09bedcbf04c64.tar.bz2
Ishtar-8ecbf128f997441ccaf1168080b09bedcbf04c64.zip
Work on operation dashboard (refs #525)
- manage OperationDepartment database view - table by department - table by month
Diffstat (limited to 'ishtar/templates')
-rw-r--r--ishtar/templates/dashboard_operation.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/ishtar/templates/dashboard_operation.html b/ishtar/templates/dashboard_operation.html
index add9ecdd3..b1fb0e8d5 100644
--- a/ishtar/templates/dashboard_operation.html
+++ b/ishtar/templates/dashboard_operation.html
@@ -253,6 +253,32 @@
</tr>
</table></div>
+ <div class='table'>
+ <table>
+ <caption>{% trans "By month" %}</caption>
+ <tr>
+ <th>{% trans "State" %}</th>{%for mt in dashboard.last_months %}<th>{{mt.date|date:"F Y"|capfirst}}</th>{% endfor %}
+ </tr>
+ {% for lbl, months in dashboard.survey.by_month %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in months %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By department" %}</caption>
+ <tr>
+ <th>{% trans "Department" %}</th>{%for yr in dashboard.years %}<th>{{yr}}</th>{% endfor %}<th>{% trans "Sum" %}</th>
+ </tr>
+ {% for lbl, years in dashboard.survey.by_dpt %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in years %}<td{%if forloop.last%} class='sub'{%endif%}>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
</div>
@@ -369,6 +395,31 @@
</tr>
</table></div>
+ <div class='table'>
+ <table>
+ <caption>{% trans "By month" %}</caption>
+ <tr>
+ <th>{% trans "State" %}</th>{%for mt in dashboard.last_months %}<th>{{mt.date|date:"F Y"|capfirst}}</th>{% endfor %}
+ </tr>
+ {% for lbl, months in dashboard.excavation.by_month %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in months %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By department" %}</caption>
+ <tr>
+ <th>{% trans "Department" %}</th>{%for yr in dashboard.years %}<th>{{yr}}</th>{% endfor %}<th>{% trans "Sum" %}</th>
+ </tr>
+ {% for lbl, years in dashboard.excavation.by_dpt %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in years %}<td{%if forloop.last%} class='sub'{%endif%}>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
</div>
<!--