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:
@@ -195,11 +195,21 @@
|
|||||||
</p:column>
|
</p:column>
|
||||||
|
|
||||||
<!-- Localisation -->
|
<!-- Localisation -->
|
||||||
<p:column headerText="Localisation" style="width: 13rem;">
|
<p:column headerText="Localisation" sortBy="#{org.ville}" style="width: 13rem;">
|
||||||
<div class="flex align-items-center text-500 text-sm">
|
<h:panelGroup rendered="#{not empty org.ville or not empty org.pays}">
|
||||||
<i class="pi pi-map-marker text-400 mr-1"></i>
|
<div class="flex align-items-center text-sm">
|
||||||
<span>—</span>
|
<i class="pi pi-map-marker text-primary mr-1"></i>
|
||||||
</div>
|
<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>
|
</p:column>
|
||||||
|
|
||||||
<!-- Membres -->
|
<!-- Membres -->
|
||||||
|
|||||||
Reference in New Issue
Block a user