style dashboard, remove bike parking in places selection

This commit is contained in:
Tykayn 2025-06-05 15:43:11 +02:00 committed by tykayn
parent 5a05cd22d1
commit 4c1a7729a1
5 changed files with 59 additions and 15 deletions

View file

@ -638,8 +638,11 @@ document.addEventListener('DOMContentLoaded', () => {
// Afficher l'indicateur de chargement
document.querySelector('#loading_search_insee').classList.remove('d-none');
const response = await fetch(`https://geo.api.gouv.fr/communes?nom=${query}&fields=nom,code,codesPostaux&limit=10`);
const data = await response.json();
document.querySelector('#loading_search_insee').classList.add('d-none');
return data.map(commune => ({
label: `${commune.nom} (code insee ${commune.code})`,
insee: commune.code,