mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-04 17:04:53 +02:00
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="col-12">
|
||||
<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-responsive">
|
||||
<table id="dashboard-table" class="table table-striped table-sort">
|
||||
|
@ -160,11 +160,19 @@
|
|||
{% for stat in stats_list %}
|
||||
<tr>
|
||||
<td><a href="{{ path('app_admin_stats', {'insee_code': stat.zone}) }}" title="Voir les statistiques de cette ville">
|
||||
{{ stat.name }}
|
||||
{% if not stat.name and stat.zone starts with '751' %}
|
||||
Paris {{ stat.zone|slice(-2) }}e.
|
||||
|
||||
{% endif %}
|
||||
{% if stat.name %}
|
||||
{{ stat.name }}
|
||||
{% else %}
|
||||
{% if stat.zone starts with '751' %}
|
||||
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>
|
||||
<td>{{ stat.zone }}</td>
|
||||
<td>{{ stat.completionPercent }}%</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue