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: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 xmlns:p="http://primefaces.org/ui"
11 <ui:define name="metadata">
15 value="#{beanHelper.user}"
16 converter="UserConverter"
18 requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}"
19 converterMessage="#{msg.PARAMETER_USER_ID_INVALID}"
21 <f:viewAction action="#{beanHelper.notifyControllerUserConverted()}" />
25 <ui:define name="document_admin_title">
26 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LOCK_USER}" />
29 <ui:define name="content_header">
30 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LOCK_USER}" />
33 <ui:define name="content">
34 <h:form rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'CONFIRMED'}">
35 <h:panelGroup layout="block">
36 <div class="table-header">
37 <h:outputFormat value="#{msg.ADMIN_LOCK_USER_TITLE}">
38 <f:param value="#{beanHelper.user.userName}" />
39 <f:param value="#{beanHelper.user.userId}" />
43 <h:panelGroup styleClass="table-row" layout="block">
44 <div class="table-left-medium">
45 <p:outputLabel for="contactPersonalTitle" value="#{msg.PERSONAL_DATA_PERSONAL_TITLE}" />
48 <div class="table-right-medium">
49 <h:outputFormat id="contactPersonalTitle" value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
53 <h:panelGroup styleClass="table-row" layout="block">
54 <div class="table-left-medium">
55 <p:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
58 <div class="table-right-medium">
59 <h:outputFormat id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
63 <h:panelGroup styleClass="table-row" layout="block">
64 <div class="table-left-medium">
65 <p:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
68 <div class="table-right-medium">
69 <h:outputFormat id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
73 <h:panelGroup styleClass="table-row" layout="block">
74 <div class="table-left-medium">
75 <p:outputLabel for="userLockReason" value="#{msg.ADMIN_ENTER_USER_LOCK_REASON}" />
78 <div class="table-right-medium">
79 <p:inputTextarea id="userLockReason" value="#{adminUserController.userLockReason}" cols="50" rows="10" required="true" requiredMessage="#{msg.ADMIN_USER_UNLOCK_REASON_REQUIRED}" />
83 <p:panelGrid columns="2" layout="grid">
86 value="#{msg.BUTTON_RESET_FORM}"
91 action="#{adminUserController.lockUserAccount()}"
92 value="#{msg.BUTTON_ADMIN_LOCK_USER_ACCOUNT}"
99 styleClass="alert-danger"
100 value="#{msg.ERROR_ADMIN_CANNOT_LOCK_USER_ACCOUNT_UNCONFIRMED}"
101 rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}"
103 <f:param value="#{beanHelper.user.userName}" />
104 <f:param value="#{beanHelper.user.userId}" />
108 styleClass="alert-danger"
109 value="#{msg.ERROR_ADMIN_CANNOT_LOCK_USER_ACCOUNT_LOCKED}"
110 rendered="#{beanHelper.user.userAccountStatus == 'LOCKED'}"
112 <f:param value="#{beanHelper.user.userName}" />
113 <f:param value="#{beanHelper.user.userId}" />