détection des arrondissements dans le dashboard
This commit is contained in:
parent
73e021c854
commit
d2c0326231
1 changed files with 14 additions and 6 deletions
|
@ -138,7 +138,7 @@
|
||||||
<div class="row mt-4">
|
<div class="row mt-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<h2>Statistiques par ville</h2>
|
<h2>Statistiques par ville</h2>
|
||||||
<input type="text" id="dashboard-table-search" class="form-control mb-2" placeholder="Filtrer les villes...">
|
|
||||||
<div class="table-container" >
|
<div class="table-container" >
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="dashboard-table" class="table table-striped table-sort">
|
<table id="dashboard-table" class="table table-striped table-sort">
|
||||||
|
@ -160,11 +160,19 @@
|
||||||
{% for stat in stats_list %}
|
{% for stat in stats_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ path('app_admin_stats', {'insee_code': stat.zone}) }}" title="Voir les statistiques de cette ville">
|
<td><a href="{{ path('app_admin_stats', {'insee_code': stat.zone}) }}" title="Voir les statistiques de cette ville">
|
||||||
{{ stat.name }}
|
{% if stat.name %}
|
||||||
{% if not stat.name and stat.zone starts with '751' %}
|
{{ stat.name }}
|
||||||
Paris {{ stat.zone|slice(-2) }}e.
|
{% else %}
|
||||||
|
{% if stat.zone starts with '751' %}
|
||||||
{% endif %}
|
Paris {{ stat.zone|slice(-2) }}e arr.
|
||||||
|
{% elseif stat.zone starts with '693' %}
|
||||||
|
Lyon {{ stat.zone|slice(-2) }}e arr.
|
||||||
|
{% elseif stat.zone starts with '132' %}
|
||||||
|
Marseille {{ stat.zone|slice(-2) }}e arr.
|
||||||
|
{% else %}
|
||||||
|
{{ stat.zone }}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</a></td>
|
</a></td>
|
||||||
<td>{{ stat.zone }}</td>
|
<td>{{ stat.zone }}</td>
|
||||||
<td>{{ stat.completionPercent }}%</td>
|
<td>{{ stat.completionPercent }}%</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue