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 id="error-helper-user" message="#{msg.ERROR_USER_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.user}" />
30 <h:form id="form-admin-user-unlock" 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">
45 <p:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{beanHelper.user.userId}">
46 <f:param name="userId" value="#{beanHelper.user.userId}" />
51 <h:panelGroup styleClass="para" layout="block">
52 <div class="table-data-label">
53 <p:outputLabel for="contactPersonalTitle" value="#{msg.PERSONAL_DATA_PERSONAL_TITLE}" />
56 <div class="table-data-field">
57 <h:outputText id="contactPersonalTitle" value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
61 <h:panelGroup styleClass="para" layout="block">
62 <div class="table-data-label">
63 <p:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
66 <div class="table-data-field">
67 <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
71 <h:panelGroup styleClass="para" layout="block">
72 <div class="table-data-label">
73 <p:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
76 <div class="table-data-field">
77 <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
81 <h:panelGroup styleClass="para" layout="block">
82 <div class="table-data-label">
83 <p:outputLabel for="userLastLocked" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
86 <div class="table-data-field">
87 <h:outputText id="userLastLocked" value="#{beanHelper.user.userLastLocked}">
88 <f:convertDateTime type="both" />
93 <h:panelGroup styleClass="para" layout="block">
94 <div class="table-data-label">
95 <p:outputLabel for="userLockReason" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
98 <div class="table-data-field">
99 <h:outputText id="userLockReason" value="#{beanHelper.user.userLastLockedReason}" />
103 <p:panelGrid columns="2" layout="grid">
106 value="#{msg.BUTTON_RESET_FORM}"
112 action="#{adminUserController.unlockUserAccount()}"
113 value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}"
119 <h:outputFormat styleClass="alert-danger" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
120 <f:param value="#{beanHelper.user.userName}" />
121 <f:param value="#{beanHelper.user.userId}" />
124 <h:outputFormat styleClass="alert-danger" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNLOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}">
125 <f:param value="#{beanHelper.user.userName}" />
126 <f:param value="#{beanHelper.user.userId}" />