]> git.mxchange.org Git - pizzaservice-war.git/blob - web/user/login_user_change_personal_data.xhtml
Updated copyright year
[pizzaservice-war.git] / web / user / login_user_change_personal_data.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
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"
9         >
10
11         <ui:define name="document_login_title">
12                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_PERSONAL_DATA}" />
13         </ui:define>
14
15         <ui:define name="login_content_header">
16                 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_PERSONAL_DATA}" />
17         </ui:define>
18
19         <ui:define name="content">
20                 <core:outputMessageBox
21                         panelGroupId="errorUserEditDataDisabled"
22                         message="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}"
23                         messageStyleClass="alert-danger"
24                         rendered="#{not featureController.isFeatureEnabled('change_user_personal_data')}"
25                         />
26
27                 <p:link
28                         outcome="user_change_password"
29                         value="#{msg.USER_LOGIN_MUST_CHANGE_PASSWORD}"
30                         rendered="#{userLoginController.ifUserMustChangePassword()}"
31                         />
32
33                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
34                         <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
35                 </ui:fragment>
36
37                 <h:panelGroup
38                         layout="block"
39                         rendered="#{userLoginController.isUserLoggedIn() and featureController.isFeatureEnabled('change_user_personal_data') and (not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password'))}"
40                         >
41                         <div class="table-header">
42                                 <h:outputText value="#{msg.LOGIN_CHANGE_PERSONAL_DATA_TITLE}" />
43                         </div>
44
45                         <h:form>
46                                 <ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl">
47                                         <ui:param name="targetController" value="#{userLoginController}" />
48                                 </ui:include>
49
50                                 <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
51
52                                 <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
53
54                                 <p:panelGrid columns="2" layout="grid">
55                                         <p:commandButton
56                                                 type="reset"
57                                                 value="#{msg.BUTTON_RESET_FORM}"
58                                                 />
59
60                                         <p:commandButton
61                                                 value="#{msg.BUTTON_CHANGE_PERSONAL_DATA}"
62                                                 action="#{userActionController.doChangePersonalData()}"
63                                                 />
64                                 </p:panelGrid>
65                         </h:form>
66                 </h:panelGroup>
67         </ui:define>
68 </ui:composition>