1 <?xml version="1.0" encoding="UTF-8" ?>
3 template="/WEB-INF/templates/admin/admin_base.tpl"
4 xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:core="http://mxchange.org/jsf/core/widgets"
6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7 xmlns:h="http://xmlns.jcp.org/jsf/html"
8 xmlns:f="http://xmlns.jcp.org/jsf/core"
9 xmlns:p="http://primefaces.org/ui"
12 <ui:define name="metadata">
14 <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}" />
15 <f:viewAction action="#{beanHelper.notifyControllerUserConverted()}" />
19 <ui:define name="document_admin_title">
20 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLOCK_USER}" />
23 <ui:define name="content_header">
24 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLOCK_USER}" />
27 <ui:define name="content">
28 <core:outputMessageBox panelGroupId="errorHandlerUnlockUser" message="#{msg.ERROR_USER_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.user}" />
30 <h:form rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'LOCKED'}">
31 <h:panelGroup layout="block">
32 <div class="table-header">
33 <h:outputFormat value="#{msg.ADMIN_UNLOCK_USER_TITLE}">
34 <f:param value="#{beanHelper.user.userName}" />
35 <f:param value="#{beanHelper.user.userId}" />
39 <h:panelGroup styleClass="para" layout="block">
40 <div class="table-data-label">
41 <h:outputText value="#{msg.ADMIN_SHOW_USER_ID}" />
44 <div class="table-data-field">
46 outcome="admin_show_user"
47 title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}"
48 value="#{beanHelper.user.userId}"
50 <f:param name="userId" value="#{beanHelper.user.userId}" />
55 <h:panelGroup styleClass="para" layout="block">
56 <div class="table-data-label">
57 <p:outputLabel for="contactPersonalTitle" value="#{msg.PERSONAL_DATA_PERSONAL_TITLE}" />
60 <div class="table-data-field">
61 <h:outputText id="contactPersonalTitle" value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
65 <h:panelGroup styleClass="para" layout="block">
66 <div class="table-data-label">
67 <p:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
70 <div class="table-data-field">
71 <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
75 <h:panelGroup styleClass="para" layout="block">
76 <div class="table-data-label">
77 <p:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
80 <div class="table-data-field">
81 <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
85 <h:panelGroup styleClass="para" layout="block">
86 <div class="table-data-label">
87 <p:outputLabel for="userLastLocked" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
90 <div class="table-data-field">
91 <h:outputText id="userLastLocked" value="#{beanHelper.user.userLastLocked}">
92 <f:convertDateTime type="both" />
97 <h:panelGroup styleClass="para" layout="block">
98 <div class="table-data-label">
99 <p:outputLabel for="userLockReason" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
102 <div class="table-data-field">
103 <h:outputText id="userLockReason" value="#{beanHelper.user.userLastLockedReason}" />
107 <p:panelGrid columns="2" layout="grid">
110 value="#{msg.BUTTON_RESET_FORM}"
115 action="#{adminUserController.unlockUserAccount()}"
116 value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}"
122 <h:outputFormat styleClass="alert-danger" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
123 <f:param value="#{beanHelper.user.userName}" />
124 <f:param value="#{beanHelper.user.userId}" />
127 <h:outputFormat styleClass="alert-danger" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNLOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}">
128 <f:param value="#{beanHelper.user.userName}" />
129 <f:param value="#{beanHelper.user.userId}" />