1 <?xml version="1.0" encoding="UTF-8" ?>
3 template="/WEB-INF/templates/login/user/user_base.tpl"
4 xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:core="http://mxchange.org/jsf/core/widgets"
6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7 xmlns:h="http://xmlns.jcp.org/jsf/html"
8 xmlns:p="http://primefaces.org/ui"
11 <ui:define name="document_login_title">
12 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_PASSWORD}" />
15 <ui:define name="login_content_header">
16 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_PASSWORD}" />
19 <ui:define name="content">
20 <core:outputMessageBox panelGroupId="loginUserMustChangePassword" message="#{msg.USER_MUST_CHANGE_PASSWORD_NOTICE}" rendered="#{userLoginController.loggedInUser.userMustChangePassword == true}" />
22 <core:outputMessageBox panelGroupId="errorUserEditDataDisabled" message="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" messageStyleClass="alert-danger" rendered="#{not featureController.isFeatureEnabled('change_user_password')}" />
24 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
25 <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
28 <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
30 <h:panelGroup styleClass="table" layout="block" rendered="#{featureController.isFeatureEnabled('change_user_password')}">
31 <div class="table-header">
32 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_TITLE}" />
35 <fieldset class="fieldset">
36 <legend title="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND_TITLE}">
37 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND}" />
40 <h:panelGroup styleClass="table-row" layout="block">
41 <div class="table-left">
42 <p:outputLabel for="userPassword" value="#{msg.USER_ENTER_NEW_PASSWORD}" />
45 <div class="table-right">
46 <p:inputText type="secret" id="userPassword" size="10" maxlength="255" value="#{userPasswordController.userPassword}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REQUIRED}" />
50 <h:panelGroup styleClass="error-container" layout="block">
51 <p:message for="userPassword" />
54 <h:panelGroup styleClass="table-row" layout="block">
55 <div class="table-left">
56 <p:outputLabel for="userPasswordRepeat" value="#{msg.USER_ENTER_NEW_PASSWORD_REPEAT}" />
59 <div class="table-right">
60 <p:inputText type="secret" id="userPasswordRepeat" size="10" maxlength="255" value="#{userPasswordController.userPasswordRepeat}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REPEAT_REQUIRED}" />
64 <h:panelGroup styleClass="error-container" layout="block">
65 <p:message for="userPasswordRepeat" />
69 <!-- @TODO Get rid of this ugly class=para abuse -->
70 <div class="para"></div>
72 <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
74 <p:panelGrid columns="2" layout="grid">
77 value="#{msg.BUTTON_RESET_FORM}"
82 value="#{msg.BUTTON_USER_CHANGE_PASSWORD}"
83 action="#{userPasswordController.doChangePassword()}"