From d4d0906965030c1f9b01d274de772c4f52d12644 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 29 Jan 2018 15:32:36 +0100 Subject: Dashboard: fix display for operation and files --- .../ishtar/dashboards/dashboard_file.html | 44 +++++++++++++--------- 1 file changed, 26 insertions(+), 18 deletions(-) (limited to 'archaeological_files/templates') diff --git a/archaeological_files/templates/ishtar/dashboards/dashboard_file.html b/archaeological_files/templates/ishtar/dashboards/dashboard_file.html index a1462698c..127c9f2f8 100644 --- a/archaeological_files/templates/ishtar/dashboards/dashboard_file.html +++ b/archaeological_files/templates/ishtar/dashboards/dashboard_file.html @@ -9,15 +9,23 @@

{% trans "Global informations" %}

-

{{dashboard.total_number|intcomma}}

- {% for type in dashboard.types %} -

{{type.number|intcomma}}

+ + + + + + {% for type in dashboard.types %} + + + + {% endfor %} +
{% trans "Total" %}{{dashboard.total_number|intcomma}}
{{type.file_type__label}}{{type.number|intcomma}}

{% trans "by year"%}

- +
{% for year in dashboard.by_year %}{% endfor %} @@ -30,7 +38,7 @@

{% trans "by month"%}

-
{% if year.date.year %}{{year.date.year}}{% else %}{% trans "no year" %}{% endif %}
+
{% for month in dashboard.by_month %}{% endfor %} @@ -47,7 +55,7 @@

{{dashboard.research.total_number|intcomma}}

{% trans "by year"%}

-
{{month.date|date:"N Y"|capfirst}}
+
{% for year in dashboard.research.by_year %}{% endfor %} @@ -59,7 +67,7 @@

{% trans "by month"%}

-
{{year.date.year}}
+
{% for month in dashboard.research.by_month %}{% endfor %} @@ -71,7 +79,7 @@

{% trans "by department"%}

-
{{month.date|date:"F Y"|capfirst}}
+
{% for dpt in dashboard.research.by_dpt %}{% endfor %} @@ -84,7 +92,7 @@

{% trans "main towns"%}

-
{{dpt.department__label}}
+
{% for town in dashboard.research.towns %}{% endfor %} @@ -104,7 +112,7 @@

{% trans "by saisine type"%}

-
{{town.town__name}}
+
{% for saisine in dashboard.rescue.saisine %}{% endfor %} @@ -118,7 +126,7 @@

{% trans "by administrative act"%}

-
{{saisine.saisine_type__label}}
+
{% for act in dashboard.rescue.administrative_act %}{% endfor %} @@ -132,7 +140,7 @@

{% trans "by year"%}

-
{{act.act_type__label}}
+
{% for year in dashboard.rescue.by_year %}{% endfor %} @@ -146,7 +154,7 @@

{% trans "by month"%}

-
{{year.date.year}}
+
{% for month in dashboard.rescue.by_month %}{% endfor %} @@ -163,7 +171,7 @@

{% trans "archaeological files linked to at least one operation (%)"%}

-
{{month.date|date:"F Y"|capfirst}}
+
{% for year in dashboard.rescue.operational_by_year %}{% endfor %} @@ -177,7 +185,7 @@

{% trans "by department"%}

-
{{year.date.year}}
+
{% for dpt in dashboard.rescue.by_dpt %}{% endfor %} @@ -191,7 +199,7 @@

{% trans "surface by department (ha)"%}

-
{{dpt.department__label}}
+
{% for dpt in dashboard.rescue.surface_by_dpt %}{% endfor %} @@ -205,7 +213,7 @@

{% trans "main towns by number"%}

-
{{dpt.department__label}}
+
{% for town in dashboard.rescue.towns %}{% endfor %} @@ -219,7 +227,7 @@

{% trans "main towns by surface (ha)"%}

-
{{town.town__name}}
+
{% for town in dashboard.rescue.surface_by_town %}{% endfor %} -- cgit v1.2.3
{{town.town__name}}