<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:p="http://primefaces.org/ui">

    <!--
        Composant d'affichage de détail (lecture seule) réutilisable - DRY/WOU
        Usage :
        <ui:include src="/templates/components/forms/detail-field.xhtml">
            <ui:param name="label" value="Nom complet"/>
            <ui:param name="value" value="#{bean.property}"/>
            <ui:param name="multiline" value="true" />
        </ui:include>
    -->

    <div class="mb-3">
        <div class="text-600 text-sm mb-1">
            <h:outputText value="#{label}" />
        </div>
        <div class="text-900">
            <h:outputText value="#{value}"
                          rendered="#{value != null}"
                          escape="true"
                          style="#{multiline ? 'white-space: pre-line;' : ''}" />
            <h:outputText value="Non renseigné"
                          rendered="#{value == null}"
                          styleClass="text-400" />
        </div>
    </div>
</ui:composition>


