]> git.mxchange.org Git - pizzaservice-war.git/blob - web/admin/user/admin_user_unlock.xhtml
added missing clear div (please cherry-pick)
[pizzaservice-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}">
26                                 <div class="table_big">
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="table_row">
35                                                 <div class="table_left25">
36                                                         <h:outputLabel for="contactGender" value="#{msg.PERSONAL_DATA_GENDER}" />
37                                                 </div>
38
39                                                 <div class="table_right75">
40                                                         <h:outputText id="contactGender" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
41                                                 </div>
42
43                                                 <div class="clear"></div>
44                                         </div>
45
46                                         <div class="table_row">
47                                                 <div class="table_left25">
48                                                         <h:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
49                                                 </div>
50
51                                                 <div class="table_right75">
52                                                         <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
53                                                 </div>
54
55                                                 <div class="clear"></div>
56                                         </div>
57
58                                         <div class="table_row">
59                                                 <div class="table_left25">
60                                                         <h:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
61                                                 </div>
62
63                                                 <div class="table_right75">
64                                                         <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
65                                                 </div>
66
67                                                 <div class="clear"></div>
68                                         </div>
69
70                                         <div class="table_row">
71                                                 <div class="table_left25">
72                                                         <h:outputLabel for="userLockReason" value="#{msg.ADMIN_ENTER_USER_LOCK_REASON}" />
73                                                 </div>
74
75                                                 <div class="table_right75">
76                                                         <h:inputTextarea id="userLockReason" value="#{adminUserController.userLockReason}" cols="30" rows="20" required="true" requiredMessage="#{msg.ADMIN_USER_UNLOCK_REASON_REQUIRED}" />
77
78                                                         <h:outputText value="#{adminUserController.userLockReason}" />
79
80                                                         <h:outputText value="#{msg.ERROR_CANNOT_UN_LOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == UserAccountStatus.UNCONFIRMED}" />
81                                                 </div>
82
83                                                 <div class="clear"></div>
84                                         </div>
85
86                                         <div class="table_footer">
87                                                 <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
88
89                                                 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.lockUserAccount(beanHelper.user)}" value="#{msg.BUTTON_ADMIN_LOCK_USER_ACCOUNT}" rendered="#{beanHelper.user.userAccountStatus == UserAccountStatus.CONFIRMED}" />
90
91                                                 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.unlockUserAccount(beanHelper.user)}" value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}" rendered="#{beanHelper.user.userAccountStatus == UserAccountStatus.LOCKED}" />
92
93                                                 <h:outputText value="#{msg.ERROR_CANNOT_UN_LOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == UserAccountStatus.UNCONFIRMED}" />
94
95                                                 <div class="clear"></div>
96                                         </div>
97                                 </div>
98                         </h:form>
99                 </ui:define>
100         </ui:composition>
101 </html>