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: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="login_title">
9 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_PASSWORD}" />
12 <ui:define name="content_header">
13 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_PASSWORD}" />
16 <ui:define name="content">
17 <ui:fragment rendered="#{userLoginController.loggedInUser.userMustChangePassword == true}">
18 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
19 <ui:param name="message" value="#{msg.USER_MUST_CHANGE_PASSWORD_NOTICE}" />
23 <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
24 <h:panelGroup styleClass="table" layout="block" rendered="#{featureController.isFeatureEnabled('change_user_password')}">
25 <div class="table_header">
26 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_TITLE}" />
29 <h:form id="form_user_change_password">
31 <fieldset class="fieldset" id="change_password">
32 <legend title="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND_TITLE}">
33 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND}" />
36 <h:panelGroup styleClass="table_row" layout="block">
37 <div class="table_left">
38 <h:outputLabel for="userPassword" value="#{msg.USER_ENTER_NEW_PASSWORD}" />
41 <div class="table_right">
42 <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userPasswordController.userPassword}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REQUIRED}" />
45 <div class="clear"></div>
48 <h:panelGroup styleClass="error_container" layout="block">
49 <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
52 <h:panelGroup styleClass="table_row" layout="block">
53 <div class="table_left">
54 <h:outputLabel for="userPasswordRepeat" value="#{msg.USER_ENTER_NEW_PASSWORD_REPEAT}" />
57 <div class="table_right">
58 <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userPasswordController.userPasswordRepeat}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REPEAT_REQUIRED}" />
61 <div class="clear"></div>
64 <h:panelGroup styleClass="error_container" layout="block">
65 <h:message for="userPasswordRepeat" errorClass="errors" fatalClass="errors" warnClass="errors" />
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 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
75 <h:commandButton styleClass="submit" type="submit" id="change_password" value="#{msg.BUTTON_USER_CHANGE_PASSWORD}" action="#{userPasswordController.doChangePassword()}" />
81 <ui:fragment rendered="#{not featureController.isFeatureEnabled('change_user_password')}">
82 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
83 <ui:param name="message" value="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" />
84 <ui:param name="styleClass" value="errors" />
88 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
89 <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />