From b6da2dbc66b084cf04124878f9f3617be1cff5bf Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 12 Sep 2013 18:54:28 +0200 Subject: Change m2 to ha in dashboards (refs #559) --- .../ishtar/dashboards/dashboard_operation.html | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'archaeological_operations/templates') diff --git a/archaeological_operations/templates/ishtar/dashboards/dashboard_operation.html b/archaeological_operations/templates/ishtar/dashboards/dashboard_operation.html index 719ec2ac1..e67214fbf 100644 --- a/archaeological_operations/templates/ishtar/dashboards/dashboard_operation.html +++ b/archaeological_operations/templates/ishtar/dashboards/dashboard_operation.html @@ -1,6 +1,5 @@ {% extends "base.html" %} -{% load i18n %} -{% load range %} +{% load i18n range units %} {% block extra_head %} {{form.media}} {% endblock %} @@ -28,11 +27,11 @@ - + {% for surface in dashboard.surface_by_type %} - + {% endfor %}
{% trans "Area by type of operation" %}
{% trans "Status" %}{% trans "Area (m²)" %}{% trans "Status" %}{% trans "Area (ha)" %}
{{surface.operation_type__label}}{{surface.number}}{{surface.operation_type__label}}{{surface.number|m2_to_ha}}
@@ -228,15 +227,15 @@
- + {% for yr in dashboard.years%}{% endfor %} - {% for nb, mean in dashboard.survey.effective %}{% endfor %} + {% for nb, mean in dashboard.survey.effective %}{% endfor %} - {% for nb, avg in dashboard.survey.effective %}{% endfor %} + {% for nb, avg in dashboard.survey.effective %}{% endfor %}
{% trans "Effective operations areas (m²)" %}{% trans "Effective operations areas (ha)" %}
 {{yr}}
{% trans "Sum" %}{{nb}}{% trans "Sum" %}{{nb|m2_to_ha}}
{% trans "Average" %}{{avg}}{% trans "Average" %}{{avg|m2_to_ha}}
@@ -313,11 +312,11 @@ - + {% for lbl, nb in dashboard.survey.towns_surface %} - + {% endfor %}
{% trans "Main towns by surface" %}
{% trans "Town" %}{% trans "Total surface (m²)" %}{% trans "Town" %}{% trans "Total surface (ha)" %}
{{lbl}}{{nb}}{{lbl}}{{nb|m2_to_ha}}
-- cgit v1.2.3