fix(org-liste): afficher la localisation réelle (ville, pays) au lieu d'un tiret

La colonne 'Localisation' dans le DataTable des organisations affichait un
tiret hardcodé (<span>—</span>) — placeholder jamais remplacé par les données.

Fix : affiche ville + pays depuis le DTO, triable par ville.
Si aucune donnée → tiret gris en fallback.
This commit is contained in:
dahoud
2026-04-16 12:03:44 +00:00
parent 8e0f4288a0
commit b5166147fe

View File

@@ -195,11 +195,21 @@
</p:column>
<!-- Localisation -->
<p:column headerText="Localisation" style="width: 13rem;">
<div class="flex align-items-center text-500 text-sm">
<i class="pi pi-map-marker text-400 mr-1"></i>
<span></span>
<p:column headerText="Localisation" sortBy="#{org.ville}" style="width: 13rem;">
<h:panelGroup rendered="#{not empty org.ville or not empty org.pays}">
<div class="flex align-items-center text-sm">
<i class="pi pi-map-marker text-primary mr-1"></i>
<div>
<span class="text-900">#{org.ville}</span>
<h:panelGroup rendered="#{not empty org.pays}">
<span class="text-500">, #{org.pays}</span>
</h:panelGroup>
</div>
</div>
</h:panelGroup>
<h:panelGroup rendered="#{empty org.ville and empty org.pays}">
<span class="text-400 text-sm"></span>
</h:panelGroup>
</p:column>
<!-- Membres -->