]> git.mxchange.org Git - jjobs-war.git/blob - web/user/login_change_password.xhtml
dc647b75027143a7434c02c5860ab863723a1f36
[jjobs-war.git] / web / user / login_change_password.xhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html
3         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
4         xmlns="http://www.w3.org/1999/xhtml"
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         >
9
10         <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl">
11                 <ui:define name="login_title">
12                         <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_PASSWORD}" />
13                 </ui:define>
14
15                 <ui:define name="content_header">
16                         <h:outputText value="#{msg.CONTENT_TITLE_USER_LOGIN_CHANGE_PASSWORD}" />
17                 </ui:define>
18
19                 <ui:define name="content">
20                         <ui:fragment rendered="#{userLoginController.loggedInUser.userMustChangePassword == true}">
21                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
22                                         <ui:param name="message" value="#{msg.USER_MUST_CHANGE_PASSWORD_NOTICE}" />
23                                 </ui:include>
24                         </ui:fragment>
25
26                         <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
27                                 <h:panelGroup styleClass="table" layout="block" rendered="#{featureController.isFeatureEnabled('change_user_password')}">
28                                         <div class="table_header">
29                                                 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_TITLE}" />
30                                         </div>
31
32                                         <h:form id="form_user_change_password">
33                                                 <div class="para">
34                                                         <fieldset class="fieldset" id="change_password">
35                                                                 <legend title="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND_TITLE}">
36                                                                         <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND}" />
37                                                                 </legend>
38
39                                                                 <div class="table_row">
40                                                                         <div class="table_left">
41                                                                                 <h:outputLabel for="userPassword" value="#{msg.USER_ENTER_NEW_PASSWORD}" />
42                                                                         </div>
43
44                                                                         <div class="table_right">
45                                                                                 <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userPasswordController.userPassword}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REQUIRED}" />
46                                                                         </div>
47
48                                                                         <div class="clear"></div>
49                                                                 </div>
50
51                                                                 <h:panelGroup styleClass="error_container" layout="block">
52                                                                         <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
53                                                                 </h:panelGroup>
54
55                                                                 <div class="table_row">
56                                                                         <div class="table_left">
57                                                                                 <h:outputLabel for="userPasswordRepeat" value="#{msg.USER_ENTER_NEW_PASSWORD_REPEAT}" />
58                                                                         </div>
59
60                                                                         <div class="table_right">
61                                                                                 <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userPasswordController.userPasswordRepeat}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REPEAT_REQUIRED}" />
62                                                                         </div>
63
64                                                                         <div class="clear"></div>
65                                                                 </div>
66
67                                                                 <h:panelGroup styleClass="error_container" layout="block">
68                                                                         <h:message for="userPasswordRepeat" errorClass="errors" fatalClass="errors" warnClass="errors" />
69                                                                 </h:panelGroup>
70                                                         </fieldset>
71                                                 </div>
72
73                                                 <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
74
75                                                 <div class="table_footer">
76                                                         <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
77                                                         <h:commandButton styleClass="submit" type="submit" id="change_password" value="#{msg.BUTTON_USER_CHANGE_PASSWORD}" action="#{userPasswordController.doChangePassword()}" />
78                                                 </div>
79                                         </h:form>
80                                 </h:panelGroup>
81                         </ui:fragment>
82
83                         <ui:fragment rendered="#{not featureController.isFeatureEnabled('change_user_password')}">
84                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
85                                         <ui:param name="message" value="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" />
86                                         <ui:param name="styleClass" value="errors" />
87                                 </ui:include>
88                         </ui:fragment>
89
90                         <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
91                                 <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
92                         </ui:fragment>
93                 </ui:define>
94         </ui:composition>
95 </html>