1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:widgets="http://mxchange.org/jsf/core/widgets"
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">
10 <ui:define name="document_login_title">
11 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_PASSWORD}" />
14 <ui:define name="login_content_header">
15 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_PASSWORD}" />
18 <ui:define name="content">
19 <widgets:outputMessageBox id="login-user-must-change-password" message="#{msg.USER_MUST_CHANGE_PASSWORD_NOTICE}" rendered="#{userLoginController.loggedInUser.userMustChangePassword == true}" />
21 <widgets:outputMessageBox id="error-user-edit-data-disabled" message="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" messageStyleClass="alert-danger" rendered="#{not featureController.isFeatureEnabled('change_user_password')}" />
23 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
24 <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
27 <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
28 <h:form id="form_user_change_password">
29 <h:panelGroup styleClass="table" layout="block" rendered="#{featureController.isFeatureEnabled('change_user_password')}">
30 <div class="table-header">
31 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_TITLE}" />
34 <fieldset class="fieldset">
35 <legend title="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND_TITLE}">
36 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND}" />
39 <h:panelGroup styleClass="table-row" layout="block">
40 <div class="table-left">
41 <p:outputLabel for="userPassword" value="#{msg.USER_ENTER_NEW_PASSWORD}" />
44 <div class="table-right">
45 <p:inputText type="secret" styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userPasswordController.userPassword}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REQUIRED}" />
49 <h:panelGroup styleClass="error-container" layout="block">
50 <p:message for="userPassword" />
53 <h:panelGroup styleClass="table-row" layout="block">
54 <div class="table-left">
55 <p:outputLabel for="userPasswordRepeat" value="#{msg.USER_ENTER_NEW_PASSWORD_REPEAT}" />
58 <div class="table-right">
59 <p:inputText type="secret" styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userPasswordController.userPasswordRepeat}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REPEAT_REQUIRED}" />
63 <h:panelGroup styleClass="error-container" layout="block">
64 <p:message for="userPasswordRepeat" />
68 <!-- @TODO Get rid of this ugly class=para abuse -->
69 <div class="para"></div>
71 <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
73 <div class="table-footer">
74 <p:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
75 <p:commandButton styleClass="submit" type="submit" id="submit_change_password" value="#{msg.BUTTON_USER_CHANGE_PASSWORD}" action="#{userPasswordController.doChangePassword()}" />