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