]> git.mxchange.org Git - jjobs-war.git/blob - web/user/login_edit_user_data.xhtml
WIP - Please cherry-pick:
[jjobs-war.git] / web / user / login_edit_user_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                                 xmlns:p="http://primefaces.org/ui">
8
9         <ui:define name="login_title">
10                 <h:outputText value="#{msg.PAGE_TITLE_LOGIN_EDIT_USER_DATA}" />
11         </ui:define>
12
13         <ui:define name="content_header">
14                 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_EDIT_USER_DATA}" />
15         </ui:define>
16
17         <ui:define name="content">
18                 <h:panelGroup styleClass="table" layout="block" rendered="#{userLoginController.isUserLoggedIn() and (not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password'))}">
19                         <div class="table-header">
20                                 <h:outputText value="#{msg.LOGIN_EDIT_USER_DATA_TITLE}" />
21                         </div>
22
23                         <h:panelGroup styleClass="para notice" layout="block">
24                                 <h:outputText value="#{msg.LOGIN_CHOOSE_PERSONAL_DATA_EMAIL_PASSWORD_NOTICE}" />
25                         </h:panelGroup>
26
27                         <h:panelGroup styleClass="para" layout="block" rendered="#{featureController.isFeatureEnabled('edit_user_data')}">
28                                 <ul>
29                                         <ui:fragment rendered="#{not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password')}">
30                                                 <li>
31                                                         <p:link title="#{msg.LINK_LOGIN_USER_CHANGE_PERSONAL_DATA_TITLE}" outcome="login_user_change_personal_data" value="#{msg.LINK_LOGIN_USER_CHANGE_PERSONAL_DATA}" />
32                                                 </li>
33                                         </ui:fragment>
34
35                                         <ui:fragment rendered="#{not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password')}">
36                                                 <li>
37                                                         <p:link title="#{msg.LINK_LOGIN_USER_CHANGE_EMAIL_ADDRESS_TITLE}" outcome="login_user_change_email_address" value="#{msg.LINK_LOGIN_USER_CHANGE_EMAIL_ADDRESS}" />
38                                                 </li>
39                                         </ui:fragment>
40
41                                         <li>
42                                                 <p:link title="#{msg.LINK_LOGIN_USER_CHANGE_PASSWORD_TITLE}" outcome="login_user_change_password" value="#{msg.LINK_LOGIN_USER_CHANGE_PASSWORD}" />
43                                         </li>
44                                 </ul>
45                         </h:panelGroup>
46                 </h:panelGroup>
47
48                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
49                         <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
50                 </ui:fragment>
51         </ui:define>
52 </ui:composition>