]> git.mxchange.org Git - addressbook-war.git/blob - web/user/login_change_personal_data.xhtml
088c5581c62d22614f171cd209305366917a837f
[addressbook-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">#{msg.PAGE_TITLE_LOGIN_CHANGE_PERSONAL_DATA}</ui:define>
12
13                 <ui:define name="content_header">
14                         #{msg.CONTENT_TITLE_LOGIN_CHANGE_PERSONAL_DATA}
15                 </ui:define>
16
17                 <ui:define name="content">
18                         <ui:fragment rendered="#{userLoginController.isUserLoggedIn() and featureController.isFeatureEnabled('edit_user_data') and (not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password'))}">
19                                 <div class="table">
20                                         <div class="table_header">
21                                                 <h:outputText value="#{msg.LOGIN_CHANGE_PERSONAL_DATA_TITLE}" />
22                                         </div>
23
24                                         <h:form id="login_change_personal_form">
25                                                 <ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
26
27                                                 <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
28
29                                                 <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
30
31                                                 <div class="table_footer">
32                                                         <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
33                                                         <h:commandButton styleClass="submit" type="submit" id="change_personal_data" value="#{msg.BUTTON_CHANGE_PERSONAL_DATA}" action="#{userController.doChangePersonalData()}" />
34                                                 </div>
35                                         </h:form>
36                                 </div>
37                         </ui:fragment>
38
39                         <h:outputText styleClass="errors" value="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" rendered="#{not featureController.isFeatureEnabled('edit_user_data')}" />
40
41                         <ui:fragment rendered="#{userLoginController.ifUserMustChangePassword()}">
42                                 <h:link outcome="user_change_password" value="#{msg.USER_LOGIN_MUST_CHANGE_PASSWORD}" />
43                         </ui:fragment>
44
45                         <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
46                                 <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
47                         </ui:fragment>
48                 </ui:define>
49         </ui:composition>
50 </html>