feat: formulaire types organisation avec categorie et modules requis
- TypeOrganisationsAdminBean: gestion List<String> modulesSelectionnes (sync CSV↔List), constantes CATEGORIES/MODULES_DISPONIBLES, getters JSF, CreateTypeReferenceRequest et UpdateTypeReferenceRequest mis à jour (11 args) - organisations.xhtml: dropdown catégorie + selectManyCheckbox modules (16), colonnes Catégorie et Modules requis dans le DataTable, dialogue 750px - pom.xml: unionflow-server-api 1.0.0 → 1.0.3
This commit is contained in:
@@ -62,6 +62,14 @@
|
||||
<h:outputText value="#{type.ordreAffichage}" />
|
||||
</p:column>
|
||||
|
||||
<p:column headerText="Catégorie" style="width: 150px;">
|
||||
<h:outputText value="#{type.categorie}" />
|
||||
</p:column>
|
||||
|
||||
<p:column headerText="Modules requis">
|
||||
<h:outputText value="#{type.modulesRequis}" style="font-size: 0.85em; color: #6c757d;" />
|
||||
</p:column>
|
||||
|
||||
<p:column headerText="Actif" style="width: 90px; text-align: center;">
|
||||
<p:tag value="#{type.actif ? 'Actif' : 'Inactif'}"
|
||||
severity="#{type.actif ? 'success' : 'danger'}" />
|
||||
@@ -117,7 +125,7 @@
|
||||
modal="true"
|
||||
resizable="false"
|
||||
responsive="true"
|
||||
width="600">
|
||||
width="750">
|
||||
|
||||
<div class="ui-fluid">
|
||||
<div class="formgrid grid">
|
||||
@@ -146,18 +154,55 @@
|
||||
rows="3"
|
||||
maxlength="500" />
|
||||
</div>
|
||||
<div class="field col-12 md:col-4">
|
||||
<div class="field col-12 md:col-6">
|
||||
<p:outputLabel for="categorie" value="Catégorie fonctionnelle" />
|
||||
<p:selectOneMenu id="categorie"
|
||||
value="#{typeOrganisationsAdminBean.typeCourant.categorie}"
|
||||
style="width:100%">
|
||||
<f:selectItem itemLabel="-- Choisir --" itemValue="#{null}" noSelectionOption="true" />
|
||||
<f:selectItem itemLabel="Associatif" itemValue="ASSOCIATIF" />
|
||||
<f:selectItem itemLabel="Financier solidaire" itemValue="FINANCIER_SOLIDAIRE" />
|
||||
<f:selectItem itemLabel="Religieux" itemValue="RELIGIEUX" />
|
||||
<f:selectItem itemLabel="Professionnel" itemValue="PROFESSIONNEL" />
|
||||
<f:selectItem itemLabel="Réseau / Fédération" itemValue="RESEAU_FEDERATION" />
|
||||
</p:selectOneMenu>
|
||||
</div>
|
||||
<div class="field col-12 md:col-3">
|
||||
<p:outputLabel for="ordre" value="Ordre d'affichage" />
|
||||
<p:inputNumber id="ordre"
|
||||
value="#{typeOrganisationsAdminBean.typeCourant.ordreAffichage}"
|
||||
decimalPlaces="0"
|
||||
minValue="0" />
|
||||
</div>
|
||||
<div class="field col-12 md:col-4">
|
||||
<div class="field col-12 md:col-3">
|
||||
<p:selectBooleanCheckbox id="actif"
|
||||
value="#{typeOrganisationsAdminBean.typeCourant.actif}" />
|
||||
<p:outputLabel for="actif" value="Actif" styleClass="ml-2" />
|
||||
</div>
|
||||
<div class="field col-12">
|
||||
<p:outputLabel value="Modules métier activés" />
|
||||
<p:selectManyCheckbox id="modulesRequis"
|
||||
value="#{typeOrganisationsAdminBean.modulesSelectionnes}"
|
||||
layout="grid"
|
||||
columns="3">
|
||||
<f:selectItem itemLabel="Cotisations" itemValue="COTISATIONS" />
|
||||
<f:selectItem itemLabel="Événements" itemValue="EVENEMENTS" />
|
||||
<f:selectItem itemLabel="Solidarité" itemValue="SOLIDARITE" />
|
||||
<f:selectItem itemLabel="Comptabilité" itemValue="COMPTABILITE" />
|
||||
<f:selectItem itemLabel="Documents" itemValue="DOCUMENTS" />
|
||||
<f:selectItem itemLabel="Notifications" itemValue="NOTIFICATIONS" />
|
||||
<f:selectItem itemLabel="Épargne & Crédit" itemValue="CREDIT_EPARGNE" />
|
||||
<f:selectItem itemLabel="Ayants-droit" itemValue="AYANTS_DROIT" />
|
||||
<f:selectItem itemLabel="Tontine" itemValue="TONTINE" />
|
||||
<f:selectItem itemLabel="Projets ONG" itemValue="ONG_PROJETS" />
|
||||
<f:selectItem itemLabel="Coopérative agricole" itemValue="COOP_AGRICOLE" />
|
||||
<f:selectItem itemLabel="Vote interne" itemValue="VOTE_INTERNE" />
|
||||
<f:selectItem itemLabel="Collecte de fonds" itemValue="COLLECTE_FONDS" />
|
||||
<f:selectItem itemLabel="Registre professionnel" itemValue="REGISTRE_PROFESSIONNEL" />
|
||||
<f:selectItem itemLabel="Cultes / Dîmes" itemValue="CULTES_RELIGIEUX" />
|
||||
<f:selectItem itemLabel="Gouvernance multi-niveaux" itemValue="GOUVERNANCE_MULTI" />
|
||||
</p:selectManyCheckbox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user