1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5 xmlns="http://www.w3.org/1999/xhtml"
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"
11 <ui:define name="metadata">
13 <f:viewParam name="userId" value="#{beanHelper.user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
14 <f:viewAction onPostback="true" action="#{beanHelper.copyUserToController()}" />
18 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
19 <ui:define name="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 <ui:fragment rendered="#{empty beanHelper.user}">
29 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
30 <ui:param name="message" value="#{msg.ERROR_USER_ID_NOT_FOUND}" />
31 <ui:param name="styleClass" value="errors" />
35 <h:form id="form_admin_user_unlock" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'LOCKED'}">
36 <h:panelGroup styleClass="table_medium" layout="block">
37 <div class="table_header">
38 <h:outputFormat value="#{msg.ADMIN_UNLOCK_USER_TITLE}">
39 <f:param value="#{beanHelper.user.userName}" />
40 <f:param value="#{beanHelper.user.userId}" />
45 <div class="table_data_label">
46 <h:outputText value="#{msg.ADMIN_SHOW_USER_ID}" />
49 <div class="table_data_field">
50 <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{beanHelper.user.userId}">
51 <f:param name="userId" value="#{beanHelper.user.userId}" />
57 <div class="table_data_label">
58 <h:outputLabel for="contactPersonalTitle" value="#{msg.PERSONAL_DATA_PERSONAL_TITLE}" />
61 <div class="table_data_field">
62 <h:outputText id="contactPersonalTitle" value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
67 <div class="table_data_label">
68 <h:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
71 <div class="table_data_field">
72 <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
77 <div class="table_data_label">
78 <h:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
81 <div class="table_data_field">
82 <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
87 <div class="table_data_label">
88 <h:outputLabel for="userLastLocked" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
91 <div class="table_data_field">
92 <h:outputText id="userLastLocked" value="#{beanHelper.user.userLastLocked.time}">
93 <f:convertDateTime for="userLastLocked" type="both" />
99 <div class="table_data_label">
100 <h:outputLabel for="userLockReason" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
103 <div class="table_data_field">
104 <h:outputText id="userLockReason" value="#{beanHelper.user.userLastLockedReason}" />
108 <div class="table_footer">
109 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
111 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.unlockUserAccount(beanHelper.user)}" value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}" />
116 <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNCONFIRMED}" rendered="#{beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
117 <f:param value="#{beanHelper.user.userName}" />
118 <f:param value="#{beanHelper.user.userId}" />
121 <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_UNLOCK_USER_ACCOUNT_UNLOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}">
122 <f:param value="#{beanHelper.user.userName}" />
123 <f:param value="#{beanHelper.user.userId}" />