From 7d2aa560ba859ebb593d34b062bf1faf09c8724c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 18 Oct 2012 17:49:57 +0200 Subject: Djangoization - Major refactoring (step 1) --- ishtar_common/templates/dashboard_operation.html | 510 +++++++++++++++++++++++ 1 file changed, 510 insertions(+) create mode 100644 ishtar_common/templates/dashboard_operation.html (limited to 'ishtar_common/templates/dashboard_operation.html') diff --git a/ishtar_common/templates/dashboard_operation.html b/ishtar_common/templates/dashboard_operation.html new file mode 100644 index 000000000..28f1dd9c6 --- /dev/null +++ b/ishtar_common/templates/dashboard_operation.html @@ -0,0 +1,510 @@ +{% extends "base.html" %} +{% load i18n %} +{% load range %} +{% block extra_head %} +{{form.media}} +{% endblock %} +{% block content %} +
+

{% trans "Operations" %}

+
+

{% trans "Global informations" %}

+ +
+ + + + + + {% for lbl, nb in dashboard.total %} + + + + {% endfor %} +
{% trans "Total" %}
{% trans "Status" %}{% trans "Number" %}
{{lbl}}{{nb}}
+ +
+ + + + + + {% for surface in dashboard.surface_by_type %} + + + + {% endfor %} +
{% trans "Area by type of operation" %}
{% trans "Status" %}{% trans "Area (m²)" %}
{{surface.operation_type__label}}{{surface.number}}
+ +
+ + + + {%for typ in dashboard.types %}{% endfor %} + + {% for lbl, types in dashboard.by_type %} + + {%for nb in types %}{% endfor %} + + {% endfor %} +
{% trans "By types" %}
{% trans "State" %}{{typ.label}}
{{lbl}}{{nb}}
+ +
+ + + + {%for yr in dashboard.years %}{% endfor %} + + {% for lbl, years in dashboard.by_year %} + + {%for nb in years %}{% endfor %} + + {% endfor %} +
{% trans "By year" %}
{% trans "State" %}{{yr}}
{{lbl}}{{nb}}
+ +
+ + + + {%for yr in dashboard.realisation_years %}{% endfor %} + + {% for lbl, years in dashboard.by_realisation_year %} + + {%for nb in years %}{% endfor %} + + {% endfor %} +
{% trans "By realisation year" %}
{% trans "State" %}{{yr.year}}
{{lbl}}{{nb}}
+ +
+ + + + {%for yr in dashboard.years %}{% endfor %} + + {% for lbl, years in dashboard.effective %} + + {%for nb in years %}{% endfor %} + + {% endfor %} +
{% trans "Effective operation by type and year" %}
{% trans "Type" %}{{yr}}
{{lbl}}{{nb}}
+ +
+ + + + {%for mt in dashboard.last_months %}{% endfor %} + + {% for lbl, months in dashboard.by_realisation_month %} + + {%for nb in months %}{% endfor %} + + {% endfor %} +
{% trans "By realisation month" %}
{% trans "State" %}{{mt.date|date:"F Y"|capfirst}}
{{lbl}}{{nb}}
+ +
+
+ +

{% trans "Survey informations" %}

+ +
+ + + + + + {% for lbl, nb in dashboard.survey.total %} + + + + {% endfor %} +
{% trans "Total" %}
{% trans "Status" %}{% trans "Number" %}
{{lbl}}{{nb}}
+ +
+ + + + {%for yr in dashboard.years %}{% endfor %} + + {% for lbl, years in dashboard.survey.by_year %} + + {%for nb in years %}{% endfor %} + + {% endfor %} +
{% trans "By year" %}
{% trans "State" %}{{yr}}
{{lbl}}{{nb}}
+ +
+ + + + {%for yr in dashboard.realisation_years %}{% endfor %} + + {% for lbl, years in dashboard.survey.by_realisation_year %} + + {%for nb in years %}{% endfor %} + + {% endfor %} +
{% trans "By realisation year" %}
{% trans "State" %}{{yr.year}}
{{lbl}}{{nb}}
+ +
+ + + + {% for lbl in dashboard.filters_label %}{%endfor%} + + + {% for nb in dashboard.survey.area %}{%endfor%} + + + {% for nb in dashboard.survey.manday %}{%endfor%} + + + {% for nb in dashboard.survey.mandayhect %}{%endfor%} + +
{% trans "Current year" %}
{% trans "Status" %}{{lbl}}
{% trans "Area"%}{{nb}}
{% trans "Man-day"%}{{nb}}
{% trans "Man-day/hectare"%}{{nb}}
+ +

{% trans "Man-day/hectare for effective operations (current year):" %} {{dashboard.survey.mandayhect_effective}}

+ +
+ + + + + + {% for org in dashboard.survey.org %} + + + + {% endfor %} +
{% trans "Organizations (current year)" %}
 {% trans "Area" %}{% trans "Man-day" %}{% trans "Man-day/hectare" %}
{{org.in_charge__attached_to__name}}{{org.area}}{{org.manday}}{{org.mandayhect}}
+ +
+ + + + {% for lbl in dashboard.filters_label %}{%endfor%} + + + {% for nb in dashboard.survey.area_realised %}{%endfor%} + + + {% for nb in dashboard.survey.manday_realised %}{%endfor%} + + + {% for nb in dashboard.survey.mandayhect_realised %}{%endfor%} + +
{% trans "Current realisation year" %}
{% trans "Status" %}{{lbl}}
{% trans "Area"%}{{nb}}
{% trans "Man-day"%}{{nb}}
{% trans "Man-day/hectare"%}{{nb}}
+ +

{% trans "Man-day/hectare for effective operations (current realisation year):" %} {{dashboard.survey.mandayhect_real_effective}}

+ +
+ + + + + + {% for org in dashboard.survey.org_realised %} + + + + {% endfor %} +
{% trans "Organizations (current realisation year)" %}
 {% trans "Area" %}{% trans "Man-day" %}{% trans "Man-day/hectare" %}
{{org.in_charge__attached_to__name}}{{org.area}}{{org.manday}}{{org.mandayhect}}
+ +
+ + + + {% for yr in dashboard.years%}{% endfor %} + + {% for org, vals in dashboard.survey.org_by_year %} + + {% for area, cost in vals %}{% endfor %} + + {% endfor %} + + {% for area in dashboard.survey.org_by_year_area_mean %}{% endfor %} + +
{% trans "Area by organization by year" %}
{% trans "Organization" %}{{yr}}
{{org}}{{area}}
{% trans "Mean" %}{{area}}
+ +
+ + + + {% for yr in dashboard.years%}{% endfor %} + + + {% for nb, mean in dashboard.survey.effective %}{% endfor %} + + + {% for nb, avg in dashboard.survey.effective %}{% endfor %} + +
{% trans "Effective operations areas (m²)" %}
 {{yr}}
{% trans "Sum" %}{{nb}}
{% trans "Average" %}{{avg}}
+ +
+ + + + {% for yr in dashboard.years%}{% endfor %} + + + {% for nb, mean in dashboard.survey.mandayshect %}{% endfor %} + + + {% for nb, avg in dashboard.survey.mandayshect %}{% endfor %} + +
{% trans "Man-Days/hectare by Year" %}
 {{yr}}
{% trans "Man-Days/hectare" %}{{nb}}
{% trans "Average" %}{{avg}}
+ +
+ + + + {%for mt in dashboard.last_months %}{% endfor %} + + {% for lbl, months in dashboard.survey.by_month %} + + {%for nb in months %}{% endfor %} + + {% endfor %} +
{% trans "By month" %}
{% trans "State" %}{{mt.date|date:"F Y"|capfirst}}
{{lbl}}{{nb}}
+ +
+ + + + {%for yr in dashboard.years %}{% endfor %} + + {% for lbl, years in dashboard.survey.by_dpt %} + + {%for nb in years %}{{nb}}{% endfor %} + + {% endfor %} +
{% trans "By department" %}
{% trans "Department" %}{{yr}}{% trans "Sum" %}
{{lbl}}
+ +
+ + + + {%for yr in dashboard.years %}{% endfor %} + + + {%for yr in dashboard.years %}{% endfor %} + + {% for lbl, years in dashboard.survey.effective_by_dpt %} + + {%for nb, area, cost, fnap in years %}{{nb}}{{area}}{% endfor %} + + {% endfor %} +
{% trans "Effective operation by department" %}
{% trans "Department" %}{{yr}}{% trans "Sum" %}
{%trans "Nb."%}{%trans "Area"%}{%trans "Nb."%}{%trans "Area"%}
{{lbl}}
+ +
+ + + + + + {% for lbl, nb in dashboard.survey.towns %} + + + + {% endfor %} +
{% trans "Main towns by number" %}
{% trans "Town" %}{% trans "Number" %}
{{lbl}}{{nb}}
+ +
+ + + + + + {% for lbl, nb in dashboard.survey.towns_surface %} + + + + {% endfor %} +
{% trans "Main towns by surface" %}
{% trans "Town" %}{% trans "Total surface (m²)" %}
{{lbl}}{{nb}}
+ + +
+
+ +

{% trans "Excavation informations" %}

+ +
+ + + + + + {% for lbl, nb in dashboard.excavation.total %} + + + + {% endfor %} +
{% trans "Total" %}
{% trans "Status" %}{% trans "Number" %}
{{lbl}}{{nb}}
+ +
+ + + + {%for yr in dashboard.years %}{% endfor %} + + {% for lbl, years in dashboard.excavation.by_year %} + + {%for nb in years %}{% endfor %} + + {% endfor %} +
{% trans "By year" %}
{% trans "State" %}{{yr}}
{{lbl}}{{nb}}
+ +
+ + + + {%for yr in dashboard.realisation_years %}{% endfor %} + + {% for lbl, years in dashboard.excavation.by_realisation_year %} + + {%for nb in years %}{% endfor %} + + {% endfor %} +
{% trans "By realisation year" %}
{% trans "State" %}{{yr.year}}
{{lbl}}{{nb}}
+ +
+ + + + {% for lbl in dashboard.filters_label %}{%endfor%} + + + {% for nb in dashboard.excavation.area_realised %}{%endfor%} + + + {% for nb in dashboard.excavation.manday_realised %}{%endfor%} + + + {% for nb in dashboard.excavation.mandayhect_realised %}{%endfor%} + +
{% trans "Current realisation year" %}
{% trans "Status" %}{{lbl}}
{% trans "Area"%}{{nb}}
{% trans "Man-day"%}{{nb}}
{% trans "Man-day/hectare"%}{{nb}}
+ +

{% trans "Man-day/hectare for effective operations (current realisation year):" %} {{dashboard.excavation.mandayhect_real_effective}}

+ +
+ + + + + + {% for org in dashboard.excavation.org_realised %} + + + + {% endfor %} +
{% trans "Organizations (current realisation year)" %}
 {% trans "Area" %}{% trans "Man-day" %}{% trans "Man-day/hectare" %}
{{org.in_charge__attached_to__name}}{{org.area}}{{org.manday}}{{org.mandayhect}}
+ +
+ + + + {% for yr in dashboard.years%}{% endfor %} + + {% for org, vals in dashboard.excavation.org_by_year %} + + {% for area, cost in vals %}{% endfor %} + + {% endfor %} + + {% for area in dashboard.excavation.org_by_year_area_sum %}{% endfor %} + + + {% for area in dashboard.excavation.org_by_year_area_mean %}{% endfor %} + +
{% trans "Area by organization by year" %}
{% trans "Organization" %}{{yr}}
{{org}}{{area}}
{% trans "Sum" %}{{area}}
{% trans "Mean" %}{{area}}
+ +
+ + + + {% for yr in dashboard.years%}{% endfor %} + + {% for org, vals in dashboard.excavation.org_by_year %} + + {% for area, cost in vals %}{% endfor %} + + {% endfor %} + + {% for area in dashboard.excavation.org_by_year_area_sum %}{% endfor %} + + + {% for area in dashboard.excavation.org_by_year_area_mean %}{% endfor %} + +
{% trans "Area by organization by realisation year" %}
{% trans "Organization" %}{{yr}}
{{org}}{{area}}
{% trans "Sum" %}{{area}}
{% trans "Mean" %}{{area}}
+ +
+ + + + {%for mt in dashboard.last_months %}{% endfor %} + + {% for lbl, months in dashboard.excavation.by_month %} + + {%for nb in months %}{% endfor %} + + {% endfor %} +
{% trans "By month" %}
{% trans "State" %}{{mt.date|date:"F Y"|capfirst}}
{{lbl}}{{nb}}
+ +
+ + + + {%for yr in dashboard.years %}{% endfor %} + + {% for lbl, years in dashboard.excavation.by_dpt %} + + {%for nb in years %}{{nb}}{% endfor %} + + {% endfor %} +
{% trans "By department" %}
{% trans "Department" %}{{yr}}{% trans "Sum" %}
{{lbl}}
+ +
+ + + + {%for yr in dashboard.years %}{% endfor %} + + + {%for yr in dashboard.years %}{% endfor %} + + {% for lbl, years in dashboard.excavation.effective_by_dpt %} + + {%for nb, area, cost, fnap in years %}{{nb}}{{cost}}{{fnap}}{% endfor %} + + {% endfor %} +
{% trans "Effective operation by department" %}
{% trans "Department" %}{{yr}}{% trans "Sum" %}
{%trans "Nb."%}{%trans "Cost"%}{%trans "FNAP cost"%}{%trans "Nb."%}{%trans "Cost"%}{%trans "FNAP cost"%}
{{lbl}}
+ +
+ + + + + + {% for lbl, nb in dashboard.excavation.towns %} + + + + {% endfor %} +
{% trans "Main towns by number" %}
{% trans "Town" %}{% trans "Number" %}
{{lbl}}{{nb}}
+ +
+ + + + + + {% for lbl, nb in dashboard.excavation.towns_cost %} + + + + {% endfor %} +
{% trans "Main towns by cost" %}
{% trans "Town" %}{% trans "Cost (€)" %}
{{lbl}}{{nb}}
+ + +
+
+{% endblock %} -- cgit v1.2.3