up infos habitants sur stats

This commit is contained in:
Tykayn 2025-06-17 16:23:29 +02:00 committed by tykayn
parent 21d4d5b850
commit 918527e15e
16 changed files with 559 additions and 240 deletions

View file

@ -55,6 +55,14 @@
position: relative;
margin-bottom: 1rem;
}
.list-group-item{
cursor: pointer;
}
.list-group-item:hover{
background-color: #f5f5f5;
color: #000;
}
</style>
{% endblock %}
@ -94,29 +102,24 @@
<div class="row city-list ">
<div class="mt-5">
<h2><i class="bi bi-geo-alt"></i> Villes disponibles</h2>
<p>Visualisez un tableau de bord de la complétion des commerces et autres lieux d'intérêt pour votre ville grâce à OpenStreetMap</p>
<h2><i class="bi bi-geo-alt"></i> Villes disponibles</h2>
<p>Visualisez un tableau de bord de la complétion des commerces et autres lieux d'intérêt pour votre ville grâce à OpenStreetMap</p>
</div>
{% for stat in stats %}
<a href="{{ path('app_admin_stats', {'zip_code': stat.zone}) }}" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
<div class="d-flex flex-column">
<span class="zone">{{ stat.zone }}</span>
<span class="name">{{ stat.name }}</span>
</div>
<div class="col-md-8">
<div class="list-group">
{% for stat in stats %}
<a href="{{ path('app_admin_stats', {'zip_code': stat.zone}) }}" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
{{ stat.zone }} {{ stat.name }}
<span class="badge bg-primary rounded-pill">{{ stat.placesCount }} commerces</span>
</a>
{% endfor %}
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body">
Ajoutez votre ville
</div>
</div>
</div>
</div>
<span class="badge bg-primary rounded-pill">{{ stat.placesCount }} lieux</span>
</a>
{% endfor %}
</div>
</div>
<script>
// Créer le formulaire email
@ -223,3 +226,13 @@
</script>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="module">
import { adjustListGroupFontSize } from '{{ asset('js/utils.js') }}';
document.addEventListener('DOMContentLoaded', function() {
adjustListGroupFontSize('.list-group-item');
});
</script>
{% endblock %}