summaryrefslogtreecommitdiff
path: root/archaeological_files/templates/ishtar/dashboards
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-09-12 18:54:28 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-09-12 18:54:28 +0200
commitb6da2dbc66b084cf04124878f9f3617be1cff5bf (patch)
treeded46e73d714edd9c7b1eafaead66344f6cb76d6 /archaeological_files/templates/ishtar/dashboards
parent25a0f476ef2248cde4e70ed0c199174e1398e2ba (diff)
downloadIshtar-b6da2dbc66b084cf04124878f9f3617be1cff5bf.tar.bz2
Ishtar-b6da2dbc66b084cf04124878f9f3617be1cff5bf.zip
Change m2 to ha in dashboards (refs #559)
Diffstat (limited to 'archaeological_files/templates/ishtar/dashboards')
-rw-r--r--archaeological_files/templates/ishtar/dashboards/dashboard_file.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/archaeological_files/templates/ishtar/dashboards/dashboard_file.html b/archaeological_files/templates/ishtar/dashboards/dashboard_file.html
index 0548308c0..de8be7d30 100644
--- a/archaeological_files/templates/ishtar/dashboards/dashboard_file.html
+++ b/archaeological_files/templates/ishtar/dashboards/dashboard_file.html
@@ -1,6 +1,5 @@
{% extends "base.html" %}
-{% load i18n %}
-{% load range %}
+{% load i18n range units %}
{% block extra_head %}
{{form.media}}
{% endblock %}
@@ -174,12 +173,12 @@
<div class='table'>
<table>
- <caption>{% trans "Surface by department (m²)"%}</caption>
+ <caption>{% trans "Surface by department (ha)"%}</caption>
<tr>
{% for dpt in dashboard.rescue.surface_by_dpt %}<th>{{dpt.department__label}}</th>{% endfor %}
</tr>
<tr>
- {% for dpt in dashboard.rescue.surface_by_dpt %}<td>{{dpt.number}}</td>{% endfor%}
+ {% for dpt in dashboard.rescue.surface_by_dpt %}<td>{{dpt.number|m2_to_ha}}</td>{% endfor%}
</tr>
</table>
</div>
@@ -198,12 +197,12 @@
<div class='table'>
<table>
- <caption>{% trans "Main towns by surface (m²)"%}</caption>
+ <caption>{% trans "Main towns by surface (ha)"%}</caption>
<tr>
{% for town in dashboard.rescue.surface_by_town %}<th>{{town.town__name}}</th>{% endfor %}
</tr>
<tr>
- {% for town in dashboard.rescue.surface_by_town %}<td>{{town.number}}</td>{% endfor%}
+ {% for town in dashboard.rescue.surface_by_town %}<td>{{town.number|m2_to_ha}}</td>{% endfor%}
</tr>
</table>
</div>