<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 bouton "Consulter" réutilisable - DRY/WOU
        Style: Rounded Text (icône + texte)
        
        Usage :
        <ui:include src="/templates/components/buttons/action-button-view.xhtml">
            <ui:param name="id" value="#{item.id}"/>
            <ui:param name="detailPage" value="/pages/secure/organisation/detail.xhtml"/>
            <ui:param name="styleClass" value="mr-2"/>
        </ui:include>
    -->

    <p:commandButton value="Consulter"
                   icon="pi pi-search"
                   styleClass="ui-button-rounded ui-button-text ui-button-info #{not empty styleClass ? styleClass : ''}"
                   onclick="window.location='#{request.contextPath}#{detailPage}?id=#{id}';return false;"/>
</ui:composition>
