2026-03-18 12:49:28 +01:00
|
|
|
<result-list>
|
2026-03-18 13:21:19 +01:00
|
|
|
<div class="results">
|
|
|
|
|
<div class="message" if={ props.results.length === 0 && props.hasSearched && !props.loading }>
|
2026-03-18 12:49:28 +01:00
|
|
|
Aucun résultat trouvé
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-03-18 13:21:19 +01:00
|
|
|
<div class="message" if={ props.loading }>
|
2026-03-18 12:49:28 +01:00
|
|
|
Chargement...
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-03-18 13:21:19 +01:00
|
|
|
<div each={ (f, i) in props.results } key={ f.id } class="card">
|
2026-03-18 12:49:28 +01:00
|
|
|
<h3>{ f.nom }</h3>
|
|
|
|
|
<p><b>Établissement :</b> { f.etablissement }</p>
|
|
|
|
|
<p><b>Ville :</b> { f.ville } ({ f.departement })</p>
|
|
|
|
|
<p><b>Filière :</b> { f.filiere }</p>
|
|
|
|
|
<p><b>Taux d'accès :</b> { f.tauxAcces }%</p>
|
2026-03-18 13:54:33 +01:00
|
|
|
|
2026-03-18 12:49:28 +01:00
|
|
|
<button onclick={ () => props.ondetail(i) }>Voir détail</button>
|
2026-03-18 13:54:33 +01:00
|
|
|
<button onclick={ () => props.onselect(i) }>Ajouter à la sélection</button>
|
2026-03-20 01:51:08 +01:00
|
|
|
<button onclick={ () => locateOnMap(f) } if={ f.latitude != null }>Localiser</button>
|
2026-03-18 12:49:28 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-03-20 01:51:08 +01:00
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
locateOnMap(f) {
|
|
|
|
|
if (window.mapFocus) {
|
|
|
|
|
window.mapFocus(f.id)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</result-list>
|