]> git.mxchange.org Git - pizzaservice-war.git/blob - web/user/login_change_password.xhtml
New "feature" controller introduced: (please cherry-pick this)
[pizzaservice-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">#{msg.PAGE_TITLE_LOGIN_CHANGE_PASSWORD}</ui:define>
12
13                 <ui:define name="content_header">
14                         #{msg.CONTENT_TITLE_LOGIN_CHANGE_PASSWORD}
15                 </ui:define>
16
17                 <ui:define name="content">
18                         <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
19                                 <ui:fragment rendered="#{featureController.isFeatureEnabled('edit_user_data')}">
20                                         <div class="table">
21                                                 <div class="table_header">
22                                                         <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_TITLE}" />
23                                                 </div>
24
25                                                 <h:form id="login_form">
26                                                         <div class="para">
27                                                                 <fieldset id="change_password">
28                                                                         <legend title="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND_TITLE}">
29                                                                                 <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND}" />
30                                                                         </legend>
31
32                                                                         <div class="table_row">
33                                                                                 <div class="table_left">
34                                                                                         <h:outputLabel for="userPassword" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD}" />
35                                                                                 </div>
36
37                                         <h:form id="login_form">
38                                                 <div class="para">
39                                                         <fieldset id="change_password">
40                                                                 <legend title="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND_TITLE}">
41                                                                         <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND}" />
42                                                                 </legend>
43
44                                                                 <div class="table_row">
45                                                                         <div class="table_left">
46                                                                                 <h:outputLabel for="userPassword" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD}" />
47                                                                         </div>
48
49                                                                         <div class="table_right">
50                                                                                 <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userLoginController.userPassword}" required="true" />
51                                                                         </div>
52
53                                                                         <div class="clear"></div>
54                                                                 </div>
55
56                                                                 <div class="table_row">
57                                                                         <div class="table_left">
58                                                                                 <h:outputLabel for="userPasswordRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD_REPEAT}" />
59                                                                         </div>
60
61                                                                         <div class="table_right">
62                                                                                 <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userLoginController.userPasswordRepeat}" required="true" />
63                                                                         </div>
64
65                                                                         <div class="clear"></div>
66                                                                 </div>
67                                                         </fieldset>
68                                                 </div>
69
70                                                 <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
71
72                                 <h:outputText styleClass="errors" value="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" rendered="#{not featureController.isFeatureEnabled('edit_user_data')}" />
73                         </ui:fragment>
74
75                         <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
76                                 <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
77                         </ui:fragment>
78                 </ui:define>
79         </ui:composition>
80 </html>