]> git.mxchange.org Git - jjobs-war.git/blob - web/user/login_user_change_personal_data.xhtml
Please cherry-pick:
[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:ui="http://xmlns.jcp.org/jsf/facelets"
5                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
6                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
7
8         <ui:define name="login_title">
9                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_PERSONAL_DATA}" />
10         </ui:define>
11
12         <ui:define name="content_header">
13                 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_PERSONAL_DATA}" />
14         </ui:define>
15
16         <ui:define name="content">
17                 <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'))}">
18                         <div class="table_header">
19                                 <h:outputText value="#{msg.LOGIN_CHANGE_PERSONAL_DATA_TITLE}" />
20                         </div>
21
22                         <h:form id="form_login_change_personal">
23                                 <ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
24
25                                 <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
26
27                                 <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
28
29                                 <div class="table_footer">
30                                         <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
31                                         <h:commandButton styleClass="submit" type="submit" id="change_personal_data" value="#{msg.BUTTON_CHANGE_PERSONAL_DATA}" action="#{userController.doChangePersonalData()}" />
32                                 </div>
33                         </h:form>
34                 </h:panelGroup>
35
36                 <ui:fragment rendered="#{not featureController.isFeatureEnabled('change_user_personal_data')}">
37                         <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
38                                 <ui:param name="message" value="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" />
39                                 <ui:param name="styleClass" value="errors" />
40                         </ui:include>
41                 </ui:fragment>
42
43                 <ui:fragment rendered="#{userLoginController.ifUserMustChangePassword()}">
44                         <h:link outcome="user_change_password" value="#{msg.USER_LOGIN_MUST_CHANGE_PASSWORD}" />
45                 </ui:fragment>
46
47                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
48                         <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
49                 </ui:fragment>
50         </ui:define>
51 </ui:composition>