]> git.mxchange.org Git - addressbook-war.git/blobdiff - web/user/login_edit_user_data.xhtml
Updated copyright year
[addressbook-war.git] / web / user / login_edit_user_data.xhtml
index f0ff37795a6d0fb17288d43548fdc7f44b6f3ee7..1686beddcb6d0afbae3630d8e9079ecd5b288f26 100644 (file)
@@ -1,49 +1,66 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
-       lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       template="/WEB-INF/templates/login/user/user_base.tpl"
        xmlns="http://www.w3.org/1999/xhtml"
-         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
-         xmlns:h="http://xmlns.jcp.org/jsf/html"
-         xmlns:f="http://xmlns.jcp.org/jsf/core"
-         >
-
-       <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl">
-               <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_EDIT_USER_DATA}</ui:define>
-
-               <ui:define name="content_header">
-                       #{msg.CONTENT_TITLE_LOGIN_EDIT_USER_DATA}
-               </ui:define>
-
-               <ui:define name="content">
-                       <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
-                               <div class="table">
-                                       <div class="table_header">
-                                               #{msg.LOGIN_EDIT_USER_DATA_TITLE}
-                                       </div>
-
-                                       <div class="para notice">
-                                               <h:outputText value="#{msg.LOGIN_CHOOSE_PERSONAL_DATA_EMAIL_PASSWORD_NOTICE}" />
-                                       </div>
-
-                                       <div class="para">
-                                               <ul>
-                                                       <li>
-                                                               <h:link title="#{msg.LINK_LOGIN_CHANGE_PERSONAL_DATA_TITLE}" outcome="login_change_personal_data" value="#{msg.LINK_LOGIN_CHANGE_PERSONAL_DATA}" />
-                                                       </li>
-                                                       <li>
-                                                               <h:link title="#{msg.LINK_LOGIN_CHANGE_EMAIL_ADDRESS_TITLE}" outcome="login_change_email_address" value="#{msg.LINK_LOGIN_CHANGE_EMAIL_ADDRESS}" />
-                                                       </li>
-                                                       <li>
-                                                               <h:link title="#{msg.LINK_LOGIN_CHANGE_PASSWORD_TITLE}" outcome="login_change_password" value="#{msg.LINK_LOGIN_CHANGE_PASSWORD}" />
-                                                       </li>
-                                               </ul>
-                                       </div>
-                               </div>
-                       </ui:fragment>
-
-                       <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
-                               <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
-                       </ui:fragment>
-               </ui:define>
-       </ui:composition>
-</html>
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:h="http://xmlns.jcp.org/jsf/html"
+       xmlns:f="http://xmlns.jcp.org/jsf/core"
+       xmlns:p="http://primefaces.org/ui"
+       >
+
+       <ui:define name="document_login_title">
+               <h:outputText value="#{msg.PAGE_TITLE_LOGIN_EDIT_USER_DATA}" />
+       </ui:define>
+
+       <ui:define name="login_content_header">
+               <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_EDIT_USER_DATA}" />
+       </ui:define>
+
+       <ui:define name="content">
+               <h:panelGroup styleClass="table" layout="block" rendered="#{userLoginController.isUserLoggedIn() and (not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password'))}">
+                       <div class="table-header">
+                               <h:outputText value="#{msg.LOGIN_EDIT_USER_DATA_TITLE}" />
+                       </div>
+
+                       <h:panelGroup styleClass="para notice" layout="block">
+                               <h:outputText value="#{msg.LOGIN_CHOOSE_PERSONAL_DATA_EMAIL_PASSWORD_NOTICE}" />
+                       </h:panelGroup>
+
+                       <h:panelGroup styleClass="para" layout="block" rendered="#{featureController.isFeatureEnabled('edit_user_data')}">
+                               <ul>
+                                       <ui:fragment rendered="#{not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password')}">
+                                               <li>
+                                                       <p:link
+                                                               outcome="login_user_change_personal_data"
+                                                               value="#{msg.LOGIN_LINK_USER_CHANGE_PERSONAL_DATA}"
+                                                               title="#{msg.LOGIN_LINK_USER_CHANGE_PERSONAL_DATA_TITLE}"
+                                                               />
+                                               </li>
+                                       </ui:fragment>
+
+                                       <ui:fragment rendered="#{not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password')}">
+                                               <li>
+                                                       <p:link
+                                                               outcome="login_user_change_email_address"
+                                                               value="#{msg.LOGIN_LINK_USER_CHANGE_EMAIL_ADDRESS}"
+                                                               title="#{msg.LOGIN_LINK_USER_CHANGE_EMAIL_ADDRESS_TITLE}"
+                                                               />
+                                               </li>
+                                       </ui:fragment>
+
+                                       <li>
+                                               <p:link
+                                                       outcome="login_user_change_password"
+                                                       value="#{msg.LOGIN_LINK_USER_CHANGE_PASSWORD}"
+                                                       title="#{msg.LOGIN_LINK_USER_CHANGE_PASSWORD_TITLE}"
+                                                       />
+                                       </li>
+                               </ul>
+                       </h:panelGroup>
+               </h:panelGroup>
+
+               <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
+                       <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
+               </ui:fragment>
+       </ui:define>
+</ui:composition>