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:ui="http://xmlns.jcp.org/jsf/facelets"
5 xmlns:h="http://xmlns.jcp.org/jsf/html"
6 xmlns:f="http://xmlns.jcp.org/jsf/core">
8 <ui:define name="metadata">
10 <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}" />
11 <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerUserConverted()}" />
15 <ui:define name="admin_title">
16 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLOCK_USER}" />
19 <ui:define name="content_header">
20 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLOCK_USER}" />
23 <ui:define name="content">
24 <ui:fragment rendered="#{empty beanHelper.user}">
25 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
26 <ui:param name="message" value="#{msg.ERROR_USER_ID_NOT_FOUND}" />
27 <ui:param name="styleClass" value="errors" />
31 <h:form id="form_admin_user_unlock" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'LOCKED'}">
32 <h:panelGroup styleClass="table_medium" layout="block">
33 <div class="table_header">
34 <h:outputFormat value="#{msg.ADMIN_UNLOCK_USER_TITLE}">
35 <f:param value="#{beanHelper.user.userName}" />
36 <f:param value="#{beanHelper.user.userId}" />
41 <div class="table_data_label">
42 <h:outputText value="#{msg.ADMIN_SHOW_USER_ID}" />
45 <div class="table_data_field">
46 <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{beanHelper.user.userId}">
47 <f:param name="userId" value="#{beanHelper.user.userId}" />
53 <div class="table_data_label">
54 <h:outputLabel for="contactPersonalTitle" value="#{msg.PERSONAL_DATA_PERSONAL_TITLE}" />
57 <div class="table_data_field">
58 <h:outputText id="contactPersonalTitle" value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
63 <div class="table_data_label">
64 <h:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
67 <div class="table_data_field">
68 <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
73 <div class="table_data_label">
74 <h:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
77 <div class="table_data_field">
78 <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
83 <div class="table_data_label">
84 <h:outputLabel for="userLastLocked" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
87 <div class="table_data_field">
88 <h:outputText id="userLastLocked" value="#{beanHelper.user.userLastLocked.time}">
89 <f:convertDateTime for="userLastLocked" type="both" />
95 <div class="table_data_label">
96 <h:outputLabel for="userLockReason" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
99 <div class="table_data_field">
100 <h:outputText id="userLockReason" value="#{beanHelper.user.userLastLockedReason}" />
104 <div class="table_footer">
105 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
107 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.unlockUserAccount()}" value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}" />
112 <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
113 <f:param value="#{beanHelper.user.userName}" />
114 <f:param value="#{beanHelper.user.userId}" />
117 <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNLOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}">
118 <f:param value="#{beanHelper.user.userName}" />
119 <f:param value="#{beanHelper.user.userId}" />