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