]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/user/admin_user_unlock.xhtml
Improved many things: (please cherry-pick)
[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         <f:metadata>
11                 <f:viewParam name="userId" value="#{beanHelper.user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
12                 <f:viewAction action="#{beanHelper.copyUserToController()}" />
13         </f:metadata>
14
15         <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
16                 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_UNLOCK_USER}</ui:define>
17
18                 <ui:define name="content_header">
19                         #{msg.CONTENT_TITLE_ADMIN_UNLOCK_USER}
20                 </ui:define>
21
22                 <ui:define name="content">
23                         <h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty beanHelper.user}" />
24
25                         <h:form id="form_admin_user_unlock" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'LOCKED'}">
26                                 <div class="table_medium">
27                                         <div class="table_header">
28                                                 <h:outputFormat value="#{msg.ADMIN_UNLOCK_USER_TITLE}">
29                                                         <f:param value="#{beanHelper.user.userName}" />
30                                                         <f:param value="#{beanHelper.user.userId}" />
31                                                 </h:outputFormat>
32                                         </div>
33
34                                         <div class="para">
35                                                 <div class="table_data_label">
36                                                         <h:outputText value="#{msg.ADMIN_EXPORT_USER_ID}" />
37                                                 </div>
38
39                                                 <div class="table_data_field">
40                                                         <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{beanHelper.user.userId}">
41                                                                 <f:param name="userId" value="#{beanHelper.user.userId}" />
42                                                         </h:link>
43                                                 </div>
44                                         </div>
45
46                                         <div class="para">
47                                                 <div class="table_data_label">
48                                                         <h:outputLabel for="contactGender" value="#{msg.PERSONAL_DATA_GENDER}" />
49                                                 </div>
50
51                                                 <div class="table_data_field">
52                                                         <h:outputText id="contactGender" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
53                                                 </div>
54                                         </div>
55
56                                         <div class="para">
57                                                 <div class="table_data_label">
58                                                         <h:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
59                                                 </div>
60
61                                                 <div class="table_data_field">
62                                                         <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
63                                                 </div>
64                                         </div>
65
66                                         <div class="para">
67                                                 <div class="table_data_label">
68                                                         <h:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
69                                                 </div>
70
71                                                 <div class="table_data_field">
72                                                         <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
73                                                 </div>
74                                         </div>
75
76                                         <div class="para">
77                                                 <div class="table_data_label">
78                                                         <h:outputLabel for="userLockReason" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
79                                                 </div>
80
81                                                 <div class="table_data_field">
82                                                         <h:outputText id="userLockReason" value="#{adminUserController.userLockReason}" />
83                                                 </div>
84                                         </div>
85
86                                         <div class="table_footer">
87                                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
88
89                                                 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.unlockUserAccount(beanHelper.user)}" value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}" />
90                                         </div>
91                                 </div>
92                         </h:form>
93
94                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
95                                 <f:param value="#{beanHelper.user.userName}" />
96                                 <f:param value="#{beanHelper.user.userId}" />
97                         </h:outputFormat>
98
99                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNLOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}">
100                                 <f:param value="#{beanHelper.user.userName}" />
101                                 <f:param value="#{beanHelper.user.userId}" />
102                         </h:outputFormat>
103                 </ui:define>
104         </ui:composition>
105 </html>