]> git.mxchange.org Git - pizzaservice-war.git/blob - web/user/login_user_change_personal_data.xhtml
Continued porting templates:
[pizzaservice-war.git] / web / user / login_user_change_personal_data.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5         xmlns="http://www.w3.org/1999/xhtml"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core"
9         >
10
11         <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl">
12                 <ui:define name="login_title">
13                         <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_PERSONAL_DATA}" />
14                 </ui:define>
15
16                 <ui:define name="content_header">
17                         <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_PERSONAL_DATA}" />
18                 </ui:define>
19
20                 <ui:define name="content">
21                         <h:panelGroup styleClass="table_medium" layout="block" rendered="#{userLoginController.isUserLoggedIn() and featureController.isFeatureEnabled('change_user_personal_data') and (not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password'))}">
22                                 <div class="table_header">
23                                         <h:outputText value="#{msg.LOGIN_CHANGE_PERSONAL_DATA_TITLE}" />
24                                 </div>
25
26                                 <h:form id="form_login_change_personal">
27                                         <ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
28
29                                         <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
30
31                                         <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
32
33                                         <div class="table_footer">
34                                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
35                                                 <h:commandButton styleClass="submit" type="submit" id="change_personal_data" value="#{msg.BUTTON_CHANGE_PERSONAL_DATA}" action="#{userController.doChangePersonalData()}" />
36                                         </div>
37                                 </h:form>
38                         </h:panelGroup>
39
40                         <ui:fragment rendered="#{not featureController.isFeatureEnabled('change_user_personal_data')}">
41                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
42                                         <ui:param name="message" value="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" />
43                                         <ui:param name="styleClass" value="errors" />
44                                 </ui:include>
45                         </ui:fragment>
46
47                         <ui:fragment rendered="#{userLoginController.ifUserMustChangePassword()}">
48                                 <h:link outcome="user_change_password" value="#{msg.USER_LOGIN_MUST_CHANGE_PASSWORD}" />
49                         </ui:fragment>
50
51                         <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
52                                 <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
53                         </ui:fragment>
54                 </ui:define>
55         </ui:composition>
56 </html>