]> git.mxchange.org Git - jjobs-war.git/blob - web/user/login_user_change_personal_data.xhtml
62dc3ce82b26878819bd6e18d154bdaa3100b87e
[jjobs-war.git] / web / user / login_user_change_personal_data.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:widgets="http://mxchange.org/jsf/core/widgets"
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                                 xmlns:p="http://primefaces.org/ui">
9
10         <ui:define name="document_login_title">
11                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_PERSONAL_DATA}" />
12         </ui:define>
13
14         <ui:define name="login_content_header">
15                 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_PERSONAL_DATA}" />
16         </ui:define>
17
18         <ui:define name="content">
19                 <widgets:outputMessageBox id="error-user-edit-data-disabled" message="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" messageStyleClass="alert-danger" rendered="#{not featureController.isFeatureEnabled('change_user_personal_data')}" />
20
21                 <ui:fragment rendered="#{userLoginController.ifUserMustChangePassword()}">
22                         <p:link outcome="user_change_password" value="#{msg.USER_LOGIN_MUST_CHANGE_PASSWORD}" />
23                 </ui:fragment>
24
25                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
26                         <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
27                 </ui:fragment>
28
29                 <h:panelGroup styleClass="table table-full" layout="block" rendered="#{userLoginController.isUserLoggedIn() and featureController.isFeatureEnabled('change_user_personal_data') and (not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password'))}">
30                         <div class="table-header">
31                                 <h:outputText value="#{msg.LOGIN_CHANGE_PERSONAL_DATA_TITLE}" />
32                         </div>
33
34                         <h:form id="form_login_change_personal">
35                                 <ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
36
37                                 <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
38
39                                 <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
40
41                                 <div class="table-footer">
42                                         <p:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
43                                         <p:commandButton styleClass="submit" type="submit" id="submit_change_personal_data" value="#{msg.BUTTON_CHANGE_PERSONAL_DATA}" action="#{userController.doChangePersonalData()}" />
44                                 </div>
45                         </h:form>
46                 </h:panelGroup>
47         </ui:define>
48 </ui:composition>