1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
<ui:composition template="../../WEB-INF/templates/standard.xhtml">
<ui:define name="content">
<p:graphicImage library="images" name="home.png" width="1%"/> > Administration > Compte
<br/>
<b style="font-size: 30px">Modifier/supprimer un compte</b>
<br/><br/>
<h:form id="formModifierCompte" >
<p:growl id="message" sticky="false" />
<p:fieldset legend="Informations compte">
<h:panelGrid columns="2" style="width: 100%">
<h:panelGrid columns="3" style="width: 100%" >
<p:graphicImage id="imageGrade" value="#{modifierCompteBean.champsObligatoireGrade}.png" title="Champ obligatoire" width="60%"/>
<p:outputLabel for="grade" value="Grade :" />
<p:selectOneMenu id="grade" value="#{modifierCompteBean.compteSelectionnee._grade}" converter="#{genericConverter}" >
<f:selectItems value="#{modifierCompteBean.listeGrades}" var="unGrade" itemValue="#{unGrade}" itemLabel="#{unGrade._libelle}" />
<p:ajax update=":formModifierCompte:imageGrade" listener="#{modifierCompteBean.champsObligatoires()}" event="change"></p:ajax>
</p:selectOneMenu>
<p:graphicImage id="imagePrenom" value="#{modifierCompteBean.champsObligatoirePrenom}.png" title="Champ obligatoire" width="60%"/>
<h:outputLabel for="prenom" value="Prénom :" />
<p:inputMask id="prenom" value="#{modifierCompteBean.compteSelectionnee._prenom}" maxlength="50" >
<p:ajax update=":formModifierCompte:identifiant :formModifierCompte:imagePrenom" listener="#{modifierCompteBean.champsObligatoires()}" event="change"></p:ajax>
</p:inputMask>
<p:graphicImage id="imageNom" value="#{modifierCompteBean.champsObligatoireNom}.png" title="Champ obligatoire" width="60%"/>
<h:outputLabel for="nom" value="Nom :" />
<p:inputText id="nom" value="#{modifierCompteBean.compteSelectionnee._nom}" maxlength="50">
<p:ajax update=":formModifierCompte:identifiant :formModifierCompte:imageNom" listener="#{modifierCompteBean.champsObligatoires()}" event="change"></p:ajax>
</p:inputText>
</h:panelGrid>
<h:panelGrid id="col2" columns="3" style="width: 100%" >
<h:outputText value=""/>
<h:outputLabel for="identifiant" value="Identifiant :" />
<p:inputText id="identifiant" value="#{modifierCompteBean.genererIdentifiant()}" disabled="true" size="40" />
<p:graphicImage id="imageUnite" value="#{modifierCompteBean.champsObligatoireUnite}.png" title="Champ obligatoire" width="60%"/>
<p:outputLabel for="unite" value="Unité :" />
<p:selectOneMenu id="unite" value="#{modifierCompteBean.compteSelectionnee._escadrons}" converter="#{genericConverter}">
<f:selectItems value="#{modifierCompteBean.listeEscadrons}" var="uneUnite" itemLabel="#{uneUnite._libelle}" itemValue="#{uneUnite}" />
<p:ajax update=":formModifierCompte:imageUnite" listener="#{modifierCompteBean.champsObligatoires()}" event="change"></p:ajax>
</p:selectOneMenu>
</h:panelGrid>
</h:panelGrid>
</p:fieldset>
<br/>
<p:fieldset legend="Profil(s) alloué(s)">
<p:graphicImage id="imageProfils" value="#{modifierCompteBean.champsObligatoireProfils}.png" title="Sélectionner au minimum un profil" width="2%"/>
<p:selectManyCheckbox id="profils" value="#{modifierCompteBean.compteSelectionnee._tab_profils}" layout="grid" columns="1" converter="#{genericConverter}">
<f:selectItems value="#{modifierCompteBean.listeProfils}" var="profil" itemLabel="#{profil._libelle}" itemValue="#{profil}"/>
<p:ajax update=":formModifierCompte:imageProfils" listener="#{modifierCompteBean.champsObligatoires()}" event="change"></p:ajax>
</p:selectManyCheckbox>
</p:fieldset>
<br/>
<center>
<h:panelGroup>
<p:commandButton value="Modifier compte"
action="#{modifierCompteBean.modifierCompte()}"
ajax="true"
update="message :formModifierCompte"/>
<p:commandButton value="Réactiver compte"
action="#{modifierCompteBean.reactiverCompte()}"
ajax="true"
update="message :formModifierCompte">
</p:commandButton>
<p:commandButton value="Supprimer compte"
action="#{modifierCompteBean.desactiverCompte()}"
ajax="true"
update="message :formModifierCompte"/>
<p:commandButton value="Annuler"
action="rechercherCompte?faces-redirect=true;"
immediate="true" />
</h:panelGroup>
</center>
</h:form>
</ui:define>
</ui:composition>
</html> |
Partager