Configure Maven repository for unionflow-server-api dependency
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant réutilisable: Champ de détail en ligne (label à gauche, valeur à droite)
|
||||
Usage:
|
||||
<ui:include src="/templates/components/forms/detail-field-row.xhtml">
|
||||
<ui:param name="label" value="Nom complet" />
|
||||
<ui:param name="value" value="#{bean.property}" />
|
||||
<ui:param name="valueClass" value="font-bold text-primary" />
|
||||
<ui:param name="suffix" value="(optionnel)" />
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="flex justify-content-between align-items-center mb-2">
|
||||
<span class="font-medium text-900">#{label}:</span>
|
||||
<div class="text-right">
|
||||
<span class="#{valueClass}">#{value}</span>
|
||||
<small class="text-600 ml-1" rendered="#{not empty suffix}">#{suffix}</small>
|
||||
</div>
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<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>
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant autoComplete réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-autocomplete.xhtml">
|
||||
<ui:param name="id" value="searchProfession" />
|
||||
<ui:param name="label" value="Profession" />
|
||||
<ui:param name="value" value="#{bean.filtres.profession}" />
|
||||
<ui:param name="completeMethod" value="#{bean.completerProfessions}" />
|
||||
<ui:param name="placeholder" value="Saisir une profession..." />
|
||||
<ui:param name="update" value=":formResultats:dtResultats @(.search-summary)" />
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:outputLabel for="#{id}" value="#{label}" />
|
||||
<p:autoComplete id="#{id}"
|
||||
value="#{value}"
|
||||
completeMethod="#{completeMethod}"
|
||||
placeholder="#{placeholder}"
|
||||
styleClass="w-full">
|
||||
<p:ajax event="itemSelect"
|
||||
update="#{not empty update ? update : ':formResultats:dtResultats @(.search-summary)'}" />
|
||||
</p:autoComplete>
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant checkbox booléenne réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-boolean.xhtml">
|
||||
<ui:param name="id" value="desEnfants" />
|
||||
<ui:param name="label" value=" A des enfants déclarés" />
|
||||
<ui:param name="value" value="#{bean.filtres.desEnfants}" />
|
||||
<ui:param name="update" value=":formResultats:dtResultats @(.search-summary)" />
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:selectBooleanCheckbox id="#{id}" value="#{value}">
|
||||
<p:ajax update="#{not empty update ? update : ':formResultats:dtResultats @(.search-summary)'}" />
|
||||
</p:selectBooleanCheckbox>
|
||||
<p:outputLabel for="#{id}" value="#{label}" />
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant champ date réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-calendar.xhtml">
|
||||
<ui:param name="id" value="fieldId" />
|
||||
<ui:param name="label" value="Label du champ" />
|
||||
<ui:param name="value" value="#{bean.property}" />
|
||||
<ui:param name="required" value="true" />
|
||||
<ui:param name="pattern" value="dd/MM/yyyy" />
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:outputLabel for="#{id}" value="#{label}" />
|
||||
<p:calendar id="#{id}"
|
||||
value="#{value}"
|
||||
showIcon="true"
|
||||
navigator="true"
|
||||
required="#{not empty required and required}"
|
||||
locale="fr"
|
||||
pattern="#{not empty pattern ? pattern : 'dd/MM/yyyy'}"
|
||||
styleClass="w-full">
|
||||
<p:ajax event="dateSelect"
|
||||
update="#{not empty update ? update : '@form'}" />
|
||||
</p:calendar>
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant selectCheckboxMenu réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-checkbox-menu.xhtml">
|
||||
<ui:param name="id" value="searchStatut" />
|
||||
<ui:param name="label" value="Statut" />
|
||||
<ui:param name="value" value="#{bean.filtres.statuts}" />
|
||||
<ui:param name="update" value=":formResultats:dtResultats @(.search-summary)" />
|
||||
<ui:define name="items">
|
||||
<f:selectItem itemLabel="Actif" itemValue="ACTIF" />
|
||||
<f:selectItem itemLabel="Inactif" itemValue="INACTIF" />
|
||||
</ui:define>
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:outputLabel for="#{id}" value="#{label}" />
|
||||
<p:selectCheckboxMenu id="#{id}"
|
||||
value="#{value}"
|
||||
multiple="true"
|
||||
styleClass="w-full">
|
||||
<ui:insert name="items" />
|
||||
<p:ajax update="#{not empty update ? update : ':formResultats:dtResultats @(.search-summary)'}" />
|
||||
</p:selectCheckboxMenu>
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant groupe de champs (formgrid) réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-group.xhtml">
|
||||
<ui:param name="content" value="contenu des champs groupés" />
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="formgrid grid">
|
||||
<ui:fragment rendered="#{not empty content}">
|
||||
#{content}
|
||||
</ui:fragment>
|
||||
<ui:insert />
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant champ numérique réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-number.xhtml">
|
||||
<ui:param name="id" value="ageMin" />
|
||||
<ui:param name="label" value="Âge minimum" />
|
||||
<ui:param name="value" value="#{bean.filtres.ageMin}" />
|
||||
<ui:param name="placeholder" value="Ex: 25" />
|
||||
<ui:param name="minValue" value="0" />
|
||||
<ui:param name="maxValue" value="100" />
|
||||
<ui:param name="update" value=":formResultats:dtResultats @(.search-summary)" />
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:outputLabel for="#{id}" value="#{label}" />
|
||||
<p:inputNumber id="#{id}"
|
||||
value="#{value}"
|
||||
symbol=""
|
||||
placeholder="#{placeholder}"
|
||||
minValue="#{minValue}"
|
||||
maxValue="#{maxValue}"
|
||||
styleClass="w-full">
|
||||
<p:ajax event="change"
|
||||
update="#{not empty update ? update : ':formResultats:dtResultats @(.search-summary)'}" />
|
||||
</p:inputNumber>
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant champ de recherche texte avec AJAX réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-search-text.xhtml">
|
||||
<ui:param name="id" value="searchNom" />
|
||||
<ui:param name="label" value="Nom" />
|
||||
<ui:param name="value" value="#{bean.filtres.nom}" />
|
||||
<ui:param name="placeholder" value="Rechercher par nom..." />
|
||||
<ui:param name="update" value=":formResultats:dtResultats @(.search-summary)" />
|
||||
<ui:param name="event" value="keyup" />
|
||||
</ui:include>
|
||||
event: keyup, change, blur
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:outputLabel for="#{id}" value="#{label}" />
|
||||
<p:inputText id="#{id}"
|
||||
value="#{value}"
|
||||
placeholder="#{placeholder}"
|
||||
styleClass="w-full">
|
||||
<p:ajax event="#{not empty event ? event : 'keyup'}"
|
||||
update="#{not empty update ? update : ':formResultats:dtResultats @(.search-summary)'}" />
|
||||
</p:inputText>
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant champ sélection réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-select.xhtml">
|
||||
<ui:param name="id" value="fieldId" />
|
||||
<ui:param name="label" value="Label du champ" />
|
||||
<ui:param name="value" value="#{bean.property}" />
|
||||
<ui:param name="items" value="#{bean.options}" />
|
||||
<ui:param name="required" value="true" />
|
||||
<ui:param name="var" value="item" />
|
||||
<ui:param name="itemLabel" value="#{item.label}" />
|
||||
<ui:param name="itemValue" value="#{item.value}" />
|
||||
<ui:param name="update" value="componentId" />
|
||||
<ui:param name="ajaxEvent" value="change" />
|
||||
<ui:define name="items">
|
||||
<f:selectItem itemLabel="Option 1" itemValue="1" />
|
||||
</ui:define>
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:outputLabel for="#{id}" value="#{label}" />
|
||||
<p:selectOneMenu id="#{id}"
|
||||
value="#{value}"
|
||||
required="#{not empty required and required}"
|
||||
disabled="#{not empty readonly and readonly}"
|
||||
styleClass="w-full">
|
||||
<f:selectItem itemLabel="Sélectionner..." itemValue="" noSelectionOption="true" rendered="#{not empty required and required}" />
|
||||
<ui:insert name="items">
|
||||
<ui:fragment rendered="#{not empty var and not empty itemLabel and not empty itemValue}">
|
||||
<f:selectItems value="#{items}"
|
||||
var="#{var}"
|
||||
itemLabel="#{itemLabel}"
|
||||
itemValue="#{itemValue}" />
|
||||
</ui:fragment>
|
||||
<ui:fragment rendered="#{empty var}">
|
||||
<f:selectItems value="#{items}" />
|
||||
</ui:fragment>
|
||||
</ui:insert>
|
||||
<ui:insert name="ajax">
|
||||
<!-- AJAX peut être ajouté ici via ui:define -->
|
||||
</ui:insert>
|
||||
</p:selectOneMenu>
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant champ texte réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-text.xhtml">
|
||||
<ui:param name="id" value="fieldId" />
|
||||
<ui:param name="label" value="Label du champ" />
|
||||
<ui:param name="value" value="#{bean.property}" />
|
||||
<ui:param name="required" value="true" />
|
||||
<ui:param name="placeholder" value="Placeholder" />
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:outputLabel for="#{id}" value="#{label}" />
|
||||
<p:inputText id="#{id}"
|
||||
value="#{value}"
|
||||
required="#{not empty required and required}"
|
||||
placeholder="#{placeholder}"
|
||||
readonly="#{not empty readonly and readonly}"
|
||||
styleClass="w-full" />
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant champ textarea réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-textarea.xhtml">
|
||||
<ui:param name="id" value="fieldId" />
|
||||
<ui:param name="label" value="Label du champ" />
|
||||
<ui:param name="value" value="#{bean.property}" />
|
||||
<ui:param name="required" value="true" />
|
||||
<ui:param name="rows" value="4" />
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:outputLabel for="#{id}" value="#{label}" />
|
||||
<p:inputTextarea id="#{id}"
|
||||
value="#{value}"
|
||||
required="#{not empty required and required}"
|
||||
rows="#{not empty rows ? rows : 3}"
|
||||
readonly="#{not empty readonly and readonly}"
|
||||
styleClass="w-full" />
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Wrapper de champ de formulaire réutilisable (WOU/DRY)
|
||||
Usage: <ui:include src="/templates/components/forms/form-field-wrapper.xhtml">
|
||||
<ui:param name="id" value="fieldId" />
|
||||
<ui:param name="label" value="Label du champ" />
|
||||
<ui:define name="input">
|
||||
<p:inputText id="#{id}" value="#{bean.property}" styleClass="w-full" />
|
||||
</ui:define>
|
||||
</ui:include>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<p:outputLabel for="#{id}" value="#{label}" rendered="#{not empty label}" />
|
||||
<ui:insert name="input" />
|
||||
<p:message for="#{id}" />
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||
xmlns:p="http://primefaces.org/ui">
|
||||
|
||||
<!--
|
||||
Composant section de formulaire réutilisable (WOU/DRY)
|
||||
Usage: <ui:decorate template="/templates/components/forms/form-section.xhtml">
|
||||
<ui:param name="title" value="Titre de la section" />
|
||||
<ui:param name="fluid" value="true" />
|
||||
<ui:define name="content">
|
||||
Contenu de la section
|
||||
</ui:define>
|
||||
</ui:decorate>
|
||||
-->
|
||||
|
||||
<ui:composition>
|
||||
<div class="card #{fluid ? 'ui-fluid' : ''}">
|
||||
<h:panelGroup rendered="#{not empty title}">
|
||||
<h5>#{title}</h5>
|
||||
</h:panelGroup>
|
||||
<ui:insert name="content">
|
||||
<!-- Contenu par défaut si aucun content n'est fourni -->
|
||||
</ui:insert>
|
||||
</div>
|
||||
</ui:composition>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user