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">
9 <ui:define name="login_title">
10 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_PASSWORD}" />
13 <ui:define name="content_header">
14 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_PASSWORD}" />
17 <ui:define name="content">
18 <widgets:outputMessageBox message="#{msg.USER_MUST_CHANGE_PASSWORD_NOTICE}" rendered="#{userLoginController.loggedInUser.userMustChangePassword == true}" />
20 <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
21 <h:form id="form_user_change_password">
22 <h:panelGroup styleClass="table" layout="block" rendered="#{featureController.isFeatureEnabled('change_user_password')}">
23 <div class="table_header">
24 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_TITLE}" />
27 <fieldset class="fieldset" id="change_password">
28 <legend title="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND_TITLE}">
29 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND}" />
32 <h:panelGroup styleClass="table_row" layout="block">
33 <div class="table_left">
34 <h:outputLabel for="userPassword" value="#{msg.USER_ENTER_NEW_PASSWORD}" />
37 <div class="table_right">
38 <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userPasswordController.userPassword}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REQUIRED}" />
41 <div class="clear"></div>
44 <h:panelGroup styleClass="error_container" layout="block">
45 <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
48 <h:panelGroup styleClass="table_row" layout="block">
49 <div class="table_left">
50 <h:outputLabel for="userPasswordRepeat" value="#{msg.USER_ENTER_NEW_PASSWORD_REPEAT}" />
53 <div class="table_right">
54 <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userPasswordController.userPasswordRepeat}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REPEAT_REQUIRED}" />
57 <div class="clear"></div>
60 <h:panelGroup styleClass="error_container" layout="block">
61 <h:message for="userPasswordRepeat" errorClass="errors" fatalClass="errors" warnClass="errors" />
65 <div class="para"></div>
67 <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
69 <div class="table_footer">
70 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
71 <h:commandButton styleClass="submit" type="submit" id="change_password" value="#{msg.BUTTON_USER_CHANGE_PASSWORD}" action="#{userPasswordController.doChangePassword()}" />
77 <widgets:outputMessageBox message="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" styleClass="errors" rendered="#{not featureController.isFeatureEnabled('change_user_password')}" />
79 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
80 <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />