summaryrefslogtreecommitdiff
path: root/ishtar/templates/dashboard_operation.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar/templates/dashboard_operation.html')
-rw-r--r--ishtar/templates/dashboard_operation.html550
1 files changed, 550 insertions, 0 deletions
diff --git a/ishtar/templates/dashboard_operation.html b/ishtar/templates/dashboard_operation.html
new file mode 100644
index 000000000..add9ecdd3
--- /dev/null
+++ b/ishtar/templates/dashboard_operation.html
@@ -0,0 +1,550 @@
+{% extends "base.html" %}
+{% load i18n %}
+{% load range %}
+{% block extra_head %}
+{{form.media}}
+{% endblock %}
+{% block content %}
+<div class='dashboard'>
+ <h2>{% trans "Operations" %}</h2>
+ <div>
+ <h3>{% trans "Global informations" %}</h3>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Total" %}</caption>
+ <tr>
+ <th>{% trans "Status" %}</th><th>{% trans "Number" %}</th>
+ </tr>
+ {% for lbl, nb in dashboard.total %}
+ <tr>
+ <th class='sub'>{{lbl}}</th><td>{{nb}}</td>
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Area by type of operation" %}</caption>
+ <tr>
+ <th>{% trans "Status" %}</th><th>{% trans "Area (m²)" %}</th>
+ </tr>
+ {% for surface in dashboard.surface_by_type %}
+ <tr>
+ <th class='sub'>{{surface.operation_type__label}}</th><td>{{surface.number}}</td>
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By types" %}</caption>
+ <tr>
+ <th>{% trans "State" %}</th>{%for typ in dashboard.types %}<th>{{typ.label}}</th>{% endfor %}
+ </tr>
+ {% for lbl, types in dashboard.by_type %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in types %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By year" %}</caption>
+ <tr>
+ <th>{% trans "State" %}</th>{%for yr in dashboard.years %}<th>{{yr}}</th>{% endfor %}
+ </tr>
+ {% for lbl, years in dashboard.by_year %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in years %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By realisation year" %}</caption>
+ <tr>
+ <th>{% trans "State" %}</th>{%for yr in dashboard.realisation_years %}<th>{{yr.year}}</th>{% endfor %}
+ </tr>
+ {% for lbl, years in dashboard.by_realisation_year %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in years %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Effective operation by type and year" %}</caption>
+ <tr>
+ <th>{% trans "Type" %}</th>{%for yr in dashboard.years %}<th>{{yr}}</th>{% endfor %}
+ </tr>
+ {% for lbl, years in dashboard.effective %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in years %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By realisation 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.by_realisation_month %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in months %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ </div>
+ <div>
+
+ <h3>{% trans "Survey informations" %}</h3>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Total" %}</caption>
+ <tr>
+ <th>{% trans "Status" %}</th><th>{% trans "Number" %}</th>
+ </tr>
+ {% for lbl, nb in dashboard.survey.total %}
+ <tr>
+ <th class='sub'>{{lbl}}</th><td>{{nb}}</td>
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By year" %}</caption>
+ <tr>
+ <th>{% trans "State" %}</th>{%for yr in dashboard.years %}<th>{{yr}}</th>{% endfor %}
+ </tr>
+ {% for lbl, years in dashboard.survey.by_year %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in years %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By realisation year" %}</caption>
+ <tr>
+ <th>{% trans "State" %}</th>{%for yr in dashboard.realisation_years %}<th>{{yr.year}}</th>{% endfor %}
+ </tr>
+ {% for lbl, years in dashboard.survey.by_realisation_year %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in years %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Current year" %}</caption>
+ <tr>
+ <th>{% trans "Status" %}</th>{% for lbl in dashboard.filters_label %}<th>{{lbl}}</th>{%endfor%}
+ </tr>
+ <tr>
+ <th class='sub'>{% trans "Area"%}</th>{% for nb in dashboard.survey.area %}<td>{{nb}}</td>{%endfor%}
+ </tr>
+ <tr>
+ <th class='sub'>{% trans "Man-day"%}</th>{% for nb in dashboard.survey.manday %}<td>{{nb}}</td>{%endfor%}
+ </tr>
+ <tr>
+ <th class='sub'>{% trans "Man-day/hectare"%}</th>{% for nb in dashboard.survey.mandayhect %}<td>{{nb}}</td>{%endfor%}
+ </tr>
+ </table></div>
+
+ <p><strong>{% trans "Man-day/hectare for effective operations (current year):" %}</strong> {{dashboard.survey.mandayhect_effective}}</p>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Organizations (current year)" %}</caption>
+ <tr>
+ <th>&nbsp;</th><th>{% trans "Area" %}</th><th>{% trans "Man-day" %}</th><th>{% trans "Man-day/hectare" %}</th>
+ </tr>
+ {% for org in dashboard.survey.org %}
+ <tr>
+ <th class='sub'>{{org.in_charge__attached_to__name}}</th><td>{{org.area}}</td><td>{{org.manday}}</td><td>{{org.mandayhect}}</td>
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Current realisation year" %}</caption>
+ <tr>
+ <th>{% trans "Status" %}</th>{% for lbl in dashboard.filters_label %}<th>{{lbl}}</th>{%endfor%}
+ </tr>
+ <tr>
+ <th class='sub'>{% trans "Area"%}</th>{% for nb in dashboard.survey.area_realised %}<td>{{nb}}</td>{%endfor%}
+ </tr>
+ <tr>
+ <th class='sub'>{% trans "Man-day"%}</th>{% for nb in dashboard.survey.manday_realised %}<td>{{nb}}</td>{%endfor%}
+ </tr>
+ <tr>
+ <th class='sub'>{% trans "Man-day/hectare"%}</th>{% for nb in dashboard.survey.mandayhect_realised %}<td>{{nb}}</td>{%endfor%}
+ </tr>
+ </table></div>
+
+ <p><strong>{% trans "Man-day/hectare for effective operations (current realisation year):" %}</strong> {{dashboard.survey.mandayhect_real_effective}}</p>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Organizations (current realisation year)" %}</caption>
+ <tr>
+ <th>&nbsp;</th><th>{% trans "Area" %}</th><th>{% trans "Man-day" %}</th><th>{% trans "Man-day/hectare" %}</th>
+ </tr>
+ {% for org in dashboard.survey.org_realised %}
+ <tr>
+ <th class='sub'>{{org.in_charge__attached_to__name}}</th><td>{{org.area}}</td><td>{{org.manday}}</td><td>{{org.mandayhect}}</td>
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Area by organization by year" %}</caption>
+ <tr>
+ <th>{% trans "Organization" %}</th>{% for yr in dashboard.years%}<th>{{yr}}</th>{% endfor %}
+ </tr>
+ {% for org, vals in dashboard.survey.org_by_year %}
+ <tr>
+ <th class='sub'>{{org}}</th>{% for area, cost in vals %}<td>{{area}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ <tr>
+ <th>{% trans "Mean" %}</th>{% for area in dashboard.survey.org_by_year_area_mean %}<td>{{area}}</td>{% endfor %}
+ </tr>
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Effective operations areas (m²)" %}</caption>
+ <tr>
+ <th>&nbsp;</th>{% for yr in dashboard.years%}<th>{{yr}}</th>{% endfor %}
+ </tr>
+ <tr>
+ <th>{% trans "Sum" %}</th>{% for nb, mean in dashboard.survey.effective %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ <tr>
+ <th>{% trans "Average" %}</th>{% for nb, avg in dashboard.survey.effective %}<td>{{avg}}</td>{% endfor %}
+ </tr>
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Man-Days/hectare by Year" %}</caption>
+ <tr>
+ <th>&nbsp;</th>{% for yr in dashboard.years%}<th>{{yr}}</th>{% endfor %}
+ </tr>
+ <tr>
+ <th>{% trans "Man-Days/hectare" %}</th>{% for nb, mean in dashboard.survey.mandayshect %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ <tr>
+ <th>{% trans "Average" %}</th>{% for nb, avg in dashboard.survey.mandayshect %}<td>{{avg}}</td>{% endfor %}
+ </tr>
+ </table></div>
+
+
+
+ </div>
+ <div>
+
+ <h3>{% trans "Excavation informations" %}</h3>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Total" %}</caption>
+ <tr>
+ <th>{% trans "Status" %}</th><th>{% trans "Number" %}</th>
+ </tr>
+ {% for lbl, nb in dashboard.excavation.total %}
+ <tr>
+ <th class='sub'>{{lbl}}</th><td>{{nb}}</td>
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By year" %}</caption>
+ <tr>
+ <th>{% trans "State" %}</th>{%for yr in dashboard.years %}<th>{{yr}}</th>{% endfor %}
+ </tr>
+ {% for lbl, years in dashboard.excavation.by_year %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in years %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By realisation year" %}</caption>
+ <tr>
+ <th>{% trans "State" %}</th>{%for yr in dashboard.realisation_years %}<th>{{yr.year}}</th>{% endfor %}
+ </tr>
+ {% for lbl, years in dashboard.excavation.by_realisation_year %}
+ <tr>
+ <th class='sub'>{{lbl}}</th>{%for nb in years %}<td>{{nb}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Current realisation year" %}</caption>
+ <tr>
+ <th>{% trans "Status" %}</th>{% for lbl in dashboard.filters_label %}<th>{{lbl}}</th>{%endfor%}
+ </tr>
+ <tr>
+ <th class='sub'>{% trans "Area"%}</th>{% for nb in dashboard.excavation.area_realised %}<td>{{nb}}</td>{%endfor%}
+ </tr>
+ <tr>
+ <th class='sub'>{% trans "Man-day"%}</th>{% for nb in dashboard.excavation.manday_realised %}<td>{{nb}}</td>{%endfor%}
+ </tr>
+ <tr>
+ <th class='sub'>{% trans "Man-day/hectare"%}</th>{% for nb in dashboard.excavation.mandayhect_realised %}<td>{{nb}}</td>{%endfor%}
+ </tr>
+ </table></div>
+
+ <p><strong>{% trans "Man-day/hectare for effective operations (current realisation year):" %}</strong> {{dashboard.excavation.mandayhect_real_effective}}</p>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Organizations (current realisation year)" %}</caption>
+ <tr>
+ <th>&nbsp;</th><th>{% trans "Area" %}</th><th>{% trans "Man-day" %}</th><th>{% trans "Man-day/hectare" %}</th>
+ </tr>
+ {% for org in dashboard.excavation.org_realised %}
+ <tr>
+ <th class='sub'>{{org.in_charge__attached_to__name}}</th><td>{{org.area}}</td><td>{{org.manday}}</td><td>{{org.mandayhect}}</td>
+ </tr>
+ {% endfor %}
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Area by organization by year" %}</caption>
+ <tr>
+ <th>{% trans "Organization" %}</th>{% for yr in dashboard.years%}<th>{{yr}}</th>{% endfor %}
+ </tr>
+ {% for org, vals in dashboard.excavation.org_by_year %}
+ <tr>
+ <th class='sub'>{{org}}</th>{% for area, cost in vals %}<td>{{area}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ <tr>
+ <th>{% trans "Sum" %}</th>{% for area in dashboard.excavation.org_by_year_area_sum %}<td>{{area}}</td>{% endfor %}
+ </tr>
+ <tr>
+ <th>{% trans "Mean" %}</th>{% for area in dashboard.excavation.org_by_year_area_mean %}<td>{{area}}</td>{% endfor %}
+ </tr>
+ </table></div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Area by organization by realisation year" %}</caption>
+ <tr>
+ <th>{% trans "Organization" %}</th>{% for yr in dashboard.years%}<th>{{yr}}</th>{% endfor %}
+ </tr>
+ {% for org, vals in dashboard.excavation.org_by_year %}
+ <tr>
+ <th class='sub'>{{org}}</th>{% for area, cost in vals %}<td>{{area}}</td>{% endfor %}
+ </tr>
+ {% endfor %}
+ <tr>
+ <th>{% trans "Sum" %}</th>{% for area in dashboard.excavation.org_by_year_area_sum %}<td>{{area}}</td>{% endfor %}
+ </tr>
+ <tr>
+ <th>{% trans "Mean" %}</th>{% for area in dashboard.excavation.org_by_year_area_mean %}<td>{{area}}</td>{% endfor %}
+ </tr>
+ </table></div>
+
+
+ </div>
+<!--
+ <div>
+
+ <h3>{% trans "Research archaeology" %}</h3>
+
+ <p><strong>{% trans "Total:" %}</strong> {{dashboard.research.total_number}}</p>
+ <div class='table'>
+ <table>
+ <caption>{% trans "By year"%}</caption>
+ <tr>
+ {% for year in dashboard.research.by_year %}<th>{{year.date.year}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for year in dashboard.research.by_year %}<td>{{year.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By month"%}</caption>
+ <tr>
+ {% for month in dashboard.research.by_month %}<th>{{month.date|date:"F Y"|capfirst}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for month in dashboard.research.by_month %}<td>{{month.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By department"%}</caption>
+ <tr>
+ {% for dpt in dashboard.research.by_dpt %}<th>{{dpt.department__label}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for dpt in dashboard.research.by_dpt %}<td>{{dpt.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Main towns"%}</caption>
+ <tr>
+ {% for town in dashboard.research.towns %}<th>{{town.town__name}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for town in dashboard.research.towns %}<td>{{town.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ </div>
+ <div>
+
+ <h3>{% trans "Rescue archaeology" %}</h3>
+
+ <p><strong>{% trans "Total:" %}</strong> {{dashboard.rescue.total_number}}</p>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By saisine type"%}</caption>
+ <tr>
+ {% for saisine in dashboard.rescue.saisine %}<th>{{saisine.saisine_type__label}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for saisine in dashboard.rescue.saisine %}<td>{{saisine.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By administrative act"%}</caption>
+ <tr>
+ {% for act in dashboard.rescue.administrative_act %}<th>{{act.act_type__label}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for act in dashboard.rescue.administrative_act %}<td>{{act.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By year"%}</caption>
+ <tr>
+ {% for year in dashboard.rescue.by_year %}<th>{{year.date.year}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for year in dashboard.rescue.by_year %}<td>{{year.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By month"%}</caption>
+ <tr>
+ {% for month in dashboard.rescue.by_month %}<th>{{month.date|date:"F Y"|capfirst}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for month in dashboard.rescue.by_month %}<td>{{month.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <p><strong>{% trans "Archaeological files linked to at least one operation:" %}</strong> {{dashboard.rescue.with_associated_operation}}</p>
+ <p><strong>{% trans "Archaeological files linked to at least one operation (%):" %}</strong> {{dashboard.rescue.with_associated_operation_percent}}</p>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Archaeological files linked to at least one operation (%)"%}</caption>
+ <tr>
+ {% for year in dashboard.rescue.operational_by_year %}<th>{{year.date.year}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for year in dashboard.rescue.operational_by_year %}<td>{{year.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "By department"%}</caption>
+ <tr>
+ {% for dpt in dashboard.rescue.by_dpt %}<th>{{dpt.department__label}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for dpt in dashboard.rescue.by_dpt %}<td>{{dpt.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Surface by department (m²)"%}</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%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Main towns by number"%}</caption>
+ <tr>
+ {% for town in dashboard.rescue.towns %}<th>{{town.town__name}}</th>{% endfor %}
+ </tr>
+ <tr>
+ {% for town in dashboard.rescue.towns %}<td>{{town.number}}</td>{% endfor%}
+ </tr>
+ </table>
+ </div>
+
+ <div class='table'>
+ <table>
+ <caption>{% trans "Main towns by surface (m²)"%}</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%}
+ </tr>
+ </table>
+ </div>
+
+ </div>
+
+/-->
+</div>
+{% endblock %}