refactor(org-liste): simplifier colonne Localisation — h:outputText au lieu de panelGroup
Remplace les h:panelGroup imbriqués par des h:outputText conditionnels (plus léger pour PrimeFaces DataTable, évite les problèmes de rendu)
This commit is contained in:
@@ -196,20 +196,13 @@
|
|||||||
|
|
||||||
<!-- Localisation -->
|
<!-- Localisation -->
|
||||||
<p:column headerText="Localisation" sortBy="#{org.ville}" style="width: 13rem;">
|
<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">
|
<div class="flex align-items-center text-sm">
|
||||||
<i class="pi pi-map-marker text-primary mr-1"></i>
|
<i class="pi pi-map-marker text-400 mr-1"></i>
|
||||||
<div>
|
<h:outputText value="#{org.ville}" rendered="#{not empty org.ville}" styleClass="text-900"/>
|
||||||
<span class="text-900">#{org.ville}</span>
|
<h:outputText value=", #{org.pays}" rendered="#{not empty org.ville and not empty org.pays}" styleClass="text-500"/>
|
||||||
<h:panelGroup rendered="#{not empty org.pays}">
|
<h:outputText value="#{org.pays}" rendered="#{empty org.ville and not empty org.pays}" styleClass="text-900"/>
|
||||||
<span class="text-500">, #{org.pays}</span>
|
<h:outputText value="—" rendered="#{empty org.ville and empty org.pays}" styleClass="text-400"/>
|
||||||
</h:panelGroup>
|
|
||||||
</div>
|
</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