]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/resources/tags/admin/form_data/user/admin_form_user_data.tpl
Updated copyright year
[jjobs-war.git] / web / WEB-INF / resources / tags / admin / form_data / user / admin_form_user_data.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:core="http://mxchange.org/jsf/core/widgets"
5         xmlns:f="http://xmlns.jcp.org/jsf/core"
6         xmlns:h="http://xmlns.jcp.org/jsf/html"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
8         xmlns:p="http://primefaces.org/ui"
9         >
10
11         <p:fieldset
12                 legend="#{msg.ADMIN_USER_DATA_EMAIL_LEGEND}"
13                 title="#{msg.ADMIN_USER_DATA_EMAIL_LEGEND_TITLE}"
14                 rendered="#{not empty mode}"
15                 >
16                 <p:panelGrid
17                         columns="2"
18                         columnClasses="ui-grid-col-4,ui-grid-col-8"
19                         styleClass="ui-noborder"
20                         >
21                         <p:outputLabel for="userName" value="#{msg.ADMIN_PERSONAL_DATA_ENTER_USER_NAME}" />
22                         <p:inputText id="userName" size="20" maxlength="255" value="#{adminUserController.userName}" required="true" requiredMessage="#{msg.ADMIN_USER_NAME_IS_REQUIRED}" />
23
24                         <p:outputLabel for="userPassword" value="#{msg.ADMIN_USER_DATA_ENTER_PASSWORD}" />
25                         <p:inputText type="password" id="userPassword" size="10" maxlength="255" value="#{adminUserController.userPassword}" />
26
27                         <p:outputLabel for="userPasswordRepeat" value="#{msg.ADMIN_USER_DATA_ENTER_PASSWORD_REPEAT}" />
28                         <p:inputText type="password" id="userPasswordRepeat" size="10" maxlength="255" value="#{adminUserController.userPasswordRepeat}" />
29
30                         <p:outputLabel for="userMustChangePassword" value="#{msg.ADMIN_USER_MUST_CHANGE_PASSWORD}" />
31                         <p:selectBooleanCheckbox id="userMustChangePassword" value="#{adminUserController.userMustChangePassword}" />
32
33                         <p:outputLabel for="userProfileMode" value="#{msg.ADMIN_SELECT_USER_PROFILE_MODE}" />
34                         <p:selectOneMenu
35                                 id="userProfileMode"
36                                 value="#{adminUserController.userProfileMode}"
37                                 filter="true"
38                                 filterMatchMode="contains"
39                                 >
40
41                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
42
43                                 <f:selectItems
44                                         value="#{dataController.profileModes}"
45                                         var="profileMode"
46                                         itemValue="#{profileMode}"
47                                         itemLabel="#{msg[profileMode.messageKey]}"
48                                         />
49                         </p:selectOneMenu>
50                 </p:panelGrid>
51         </p:fieldset>
52
53         <p:fieldset
54                 legend="#{msg.ADMIN_USER_DATA_NOTICES_LEGEND}"
55                 rendered="#{not empty mode}"
56                 >
57                 <ul>
58                         <li><h:outputText value="#{msg.ADMIN_USER_DATA_USER_NAME_NOTICE}" /></li>
59
60                         <li>
61                                 <h:outputText value="#{msg.ADMIN_USER_DATA_PASSWORD_EDIT_NOTICE}" rendered="#{mode == 'edit'}" />
62                                 <h:outputText value="#{msg.ADMIN_USER_DATA_PASSWORD_ADD_NOTICE}" rendered="#{mode == 'add'}" />
63                         </li>
64                 </ul>
65         </p:fieldset>
66 </ui:composition>