]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/user/admin_user_unlock.xhtml
Continued with deleting user accounts: (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         <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">
19                         <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLOCK_USER}" />
20                 </ui:define>
21
22                 <ui:define name="content_header">
23                         <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLOCK_USER}" />
24                 </ui:define>
25
26                 <ui:define name="content">
27                         <ui:fragment rendered="#{empty beanHelper.user}">
28                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
29                                         <ui:param name="message" value="#{msg.ERROR_USER_ID_NOT_FOUND}" />
30                                         <ui:param name="styleClass" value="errors" />
31                                 </ui:include>
32                         </ui:fragment>
33
34                         <h:form id="form_admin_user_unlock" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'LOCKED'}">
35                                 <h:panelGroup styleClass="table_medium" layout="block">
36                                         <div class="table_header">
37                                                 <h:outputFormat value="#{msg.ADMIN_UNLOCK_USER_TITLE}">
38                                                         <f:param value="#{beanHelper.user.userName}" />
39                                                         <f:param value="#{beanHelper.user.userId}" />
40                                                 </h:outputFormat>
41                                         </div>
42
43                                         <div class="para">
44                                                 <div class="table_data_label">
45                                                         <h:outputText value="#{msg.ADMIN_SHOW_USER_ID}" />
46                                                 </div>
47
48                                                 <div class="table_data_field">
49                                                         <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{beanHelper.user.userId}">
50                                                                 <f:param name="userId" value="#{beanHelper.user.userId}" />
51                                                         </h:link>
52                                                 </div>
53                                         </div>
54
55                                         <div class="para">
56                                                 <div class="table_data_label">
57                                                         <h:outputLabel for="contactGender" value="#{msg.PERSONAL_DATA_GENDER}" />
58                                                 </div>
59
60                                                 <div class="table_data_field">
61                                                         <h:outputText id="contactGender" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
62                                                 </div>
63                                         </div>
64
65                                         <div class="para">
66                                                 <div class="table_data_label">
67                                                         <h:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
68                                                 </div>
69
70                                                 <div class="table_data_field">
71                                                         <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
72                                                 </div>
73                                         </div>
74
75                                         <div class="para">
76                                                 <div class="table_data_label">
77                                                         <h:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
78                                                 </div>
79
80                                                 <div class="table_data_field">
81                                                         <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
82                                                 </div>
83                                         </div>
84
85                                         <div class="para">
86                                                 <div class="table_data_label">
87                                                         <h:outputLabel for="userLastLocked" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
88                                                 </div>
89
90                                                 <div class="table_data_field">
91                                                         <h:outputText id="userLastLocked" value="#{beanHelper.user.userLastLocked.time}">
92                                                                 <f:convertDateTime for="userLastLocked" type="both" />
93                                                         </h:outputText>
94                                                 </div>
95                                         </div>
96
97                                         <div class="para">
98                                                 <div class="table_data_label">
99                                                         <h:outputLabel for="userLockReason" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
100                                                 </div>
101
102                                                 <div class="table_data_field">
103                                                         <h:outputText id="userLockReason" value="#{beanHelper.user.userLastLockedReason}" />
104                                                 </div>
105                                         </div>
106
107                                         <div class="table_footer">
108                                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
109
110                                                 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.unlockUserAccount(beanHelper.user)}" value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}" />
111                                         </div>
112                                 </h:panelGroup>
113                         </h:form>
114
115                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
116                                 <f:param value="#{beanHelper.user.userName}" />
117                                 <f:param value="#{beanHelper.user.userId}" />
118                         </h:outputFormat>
119
120                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNLOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}">
121                                 <f:param value="#{beanHelper.user.userName}" />
122                                 <f:param value="#{beanHelper.user.userId}" />
123                         </h:outputFormat>
124                 </ui:define>
125         </ui:composition>
126 </html>