1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:widgets="http://mxchange.org/jsf/core/widgets"
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">
9 <ui:define name="metadata">
11 <f:viewParam name="userId" value="#{beanHelper.user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" converterMessage="#{msg.PARAMETER_USER_ID_INVALID}" />
12 <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerUserConverted()}" />
16 <ui:define name="admin_title">
17 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLOCK_USER}" />
20 <ui:define name="content_header">
21 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLOCK_USER}" />
24 <ui:define name="content">
25 <widgets:outputMessageBox message="#{msg.ERROR_USER_ID_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.user}" />
27 <h:form id="form_admin_user_unlock" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'LOCKED'}">
28 <h:panelGroup styleClass="table 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}" />
36 <h:panelGroup styleClass="para" layout="block">
37 <div class="table-data-label">
38 <h:outputText value="#{msg.ADMIN_SHOW_USER_ID}" />
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}" />
48 <h:panelGroup styleClass="para" layout="block">
49 <div class="table-data-label">
50 <h:outputLabel for="contactPersonalTitle" value="#{msg.PERSONAL_DATA_PERSONAL_TITLE}" />
53 <div class="table-data-field">
54 <h:outputText id="contactPersonalTitle" value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
58 <h:panelGroup styleClass="para" layout="block">
59 <div class="table-data-label">
60 <h:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
63 <div class="table-data-field">
64 <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
68 <h:panelGroup styleClass="para" layout="block">
69 <div class="table-data-label">
70 <h:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
73 <div class="table-data-field">
74 <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
78 <h:panelGroup styleClass="para" layout="block">
79 <div class="table-data-label">
80 <h:outputLabel for="userLastLocked" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
83 <div class="table-data-field">
84 <h:outputText id="userLastLocked" value="#{beanHelper.user.userLastLocked.time}">
85 <f:convertDateTime for="userLastLocked" type="both" />
90 <h:panelGroup styleClass="para" layout="block">
91 <div class="table-data-label">
92 <h:outputLabel for="userLockReason" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
95 <div class="table-data-field">
96 <h:outputText id="userLockReason" value="#{beanHelper.user.userLastLockedReason}" />
100 <div class="table-footer">
101 <h:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
103 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.unlockUserAccount()}" value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}" />
108 <h:outputFormat styleClass="alert-danger" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
109 <f:param value="#{beanHelper.user.userName}" />
110 <f:param value="#{beanHelper.user.userId}" />
113 <h:outputFormat styleClass="alert-danger" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNLOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}">
114 <f:param value="#{beanHelper.user.userName}" />
115 <f:param value="#{beanHelper.user.userId}" />