]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/user/admin_user_lock.xhtml
0444377337010ab0cab8fe6b829cc33ab0f7485b
[jjobs-war.git] / web / admin / user / admin_user_lock.xhtml
1
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5         xmlns="http://www.w3.org/1999/xhtml"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core"
9         >
10
11         <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
12                 <ui:define name="metadata">
13                         <f:metadata>
14                                 <f:viewParam name="userId" value="#{beanHelper.user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
15                                 <f:viewAction onPostback="true" action="#{beanHelper.copyUserToController()}" />
16                         </f:metadata>
17                 </ui:define>
18
19                 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_LOCK_USER}</ui:define>
20
21                 <ui:define name="content_header">
22                         #{msg.CONTENT_TITLE_ADMIN_LOCK_USER}
23                 </ui:define>
24
25                 <ui:define name="content">
26                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty beanHelper.user}" />
27
28                         <h:form id="form_admin_user_unlock" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'CONFIRMED'}">
29                                 <h:panelGroup styleClass="table_medium" layout="block">
30                                         <div class="table_header">
31                                                 <h:outputFormat value="#{msg.ADMIN_LOCK_USER_TITLE}">
32                                                         <f:param value="#{beanHelper.user.userName}" />
33                                                         <f:param value="#{beanHelper.user.userId}" />
34                                                 </h:outputFormat>
35                                         </div>
36
37                                         <div class="para">
38                                                 <div>
39                                                         <h:outputLabel for="contactGender" value="#{msg.PERSONAL_DATA_GENDER}" />
40                                                 </div>
41
42                                                 <div>
43                                                         <h:outputFormat id="contactGender" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
44                                                 </div>
45                                         </div>
46
47                                         <div class="para">
48                                                 <div>
49                                                         <h:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
50                                                 </div>
51
52                                                 <div>
53                                                         <h:outputFormat id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
54                                                 </div>
55                                         </div>
56
57                                         <div class="para">
58                                                 <div>
59                                                         <h:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
60                                                 </div>
61
62                                                 <div>
63                                                         <h:outputFormat id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
64                                                 </div>
65                                         </div>
66
67                                         <div class="para">
68                                                 <div>
69                                                         <h:outputLabel for="userLockReason" value="#{msg.ADMIN_ENTER_USER_LOCK_REASON}" />
70                                                 </div>
71
72                                                 <div>
73                                                         <h:inputTextarea styleClass="input" id="userLockReason" value="#{adminUserController.userLockReason}" cols="50" rows="10" required="true" requiredMessage="#{msg.ADMIN_USER_UNLOCK_REASON_REQUIRED}" />
74                                                 </div>
75                                         </div>
76
77                                         <div class="table_footer">
78                                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
79
80                                                 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.lockUserAccount(beanHelper.user)}" value="#{msg.BUTTON_ADMIN_LOCK_USER_ACCOUNT}" />
81                                         </div>
82                                 </h:panelGroup>
83                         </h:form>
84
85                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_LOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
86                                 <f:param value="#{beanHelper.user.userName}" />
87                                 <f:param value="#{beanHelper.user.userId}" />
88                         </h:outputFormat>
89
90                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_LOCK_USER_ACCOUNT_LOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'LOCKED'}">
91                                 <f:param value="#{beanHelper.user.userName}" />
92                                 <f:param value="#{beanHelper.user.userId}" />
93                         </h:outputFormat>
94                 </ui:define>
95         </ui:composition>
96 </html>