aemo_fr/templates/statistiques/stats-localite.html

46 lines
1.8 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.html" %}
{% block content %}
{% include "statistiques/stat-form.html" %}
{% include "statistiques/stat-tabs.html" with active="localite" %}
<div class="row">
<div class="col">
<p class="fw-bold mt-3">
Nombre denfants suivis (dès demande jusqu'à la fin daccompagnement) par localité.
</p>
<table class="table table-sm table-hover stat_table">
<thead>
<tr><th class="left">Localité</th>
{% for month in months %}<th>{{ month }}</th>{% endfor %}
<th>Total</th>
</tr>
</thead>
<tbody>
<tr><td colspan="{{ months|length|add:3 }}" style="background-color: #eee;">
<h3>Localités</h3>
</td></tr>
{% for localite, stats in localites.items %}
{% if localite != 'totals' %}
<tr>
<td>{{ localite }}</td>
{% for month in months %}<td class="num">{{ stats|get_item:month }}</td>{% endfor %}
<td class="num">{{ stats.total }}</td>
</tr>
{% endif %}
{% endfor %}
<tr>
<td>Totaux</td>
{% for month in months %}<td class="num">{{ localites.totals|get_item:month }}</td>{% endfor %}
<td class="num">{{ localites.totals.totals }}</td>
</tr>
</tbody>
</table>
<div class="text-end">
<a href=".?{% param_replace %}&export=1"><img class="icon-ui" src="{% static 'ficons/xlsx.svg' %}"></a>
</div>
</div>
</div>
{% endblock %}