Initial commit
This commit is contained in:
commit
793bb6a488
182 changed files with 17153 additions and 0 deletions
45
templates/statistiques/stats-region.html
Normal file
45
templates/statistiques/stats-region.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% include "statistiques/stat-form.html" %}
|
||||
{% include "statistiques/stat-tabs.html" with active="region" %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<p class="fw-bold mt-3">
|
||||
Nombre d’enfants suivis (dès demande jusqu'à la fin d’accompagnement) par région.
|
||||
</p>
|
||||
|
||||
<table class="table table-sm table-hover stat_table">
|
||||
<thead>
|
||||
<tr><th class="left">Région</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>Régions</h3>
|
||||
</td></tr>
|
||||
{% for region, stats in regions.items %}
|
||||
{% if region != 'totals' %}
|
||||
<tr>
|
||||
<td>{{ region }}</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">{{ regions.totals|get_item:month }}</td>{% endfor %}
|
||||
<td class="num">{{ regions.totals.total }}</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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue