1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
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"
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()}" />
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>
18 <ui:define name="content_header">
19 #{msg.CONTENT_TITLE_ADMIN_UNLOCK_USER}
22 <ui:define name="content">
23 <h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty beanHelper.user}" />
25 <h:form id="form_admin_user_unlock" rendered="#{not empty beanHelper.user}">
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}" />
36 <h:outputLabel for="contactGender" value="#{msg.PERSONAL_DATA_GENDER}" />
40 <h:outputText id="contactGender" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
46 <h:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
50 <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
56 <h:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
60 <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
66 <h:outputLabel for="userLockReason" value="#{msg.ADMIN_ENTER_USER_LOCK_REASON}" />
70 <h:inputTextarea id="userLockReason" value="#{adminUserController.userLockReason}" cols="50" rows="10" required="true" requiredMessage="#{msg.ADMIN_USER_UNLOCK_REASON_REQUIRED}" rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}" />
72 <h:outputText value="#{adminUserController.userLockReason}" rendered="#{beanHelper.user.userAccountStatus == 'LOCKED'}" />
74 <h:outputText value="#{msg.ERROR_CANNOT_UN_LOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}" />
78 <div class="table_footer">
79 <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
81 <ui:fragment rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}">
82 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.lockUserAccount(beanHelper.user)}" value="#{msg.BUTTON_ADMIN_LOCK_USER_ACCOUNT}" />
85 <ui:fragment rendered="#{beanHelper.user.userAccountStatus == 'LOCKED'}">
86 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.unlockUserAccount(beanHelper.user)}" value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}" />
89 <h:outputText value="#{msg.ERROR_CANNOT_UN_LOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}" />