]> git.mxchange.org Git - jjobs-war.git/blob - web/guest/user/user_profile.xhtml
Please cherry-pick:
[jjobs-war.git] / web / guest / user / user_profile.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/#{userLoginController.baseTemplatePathName}_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:core="http://mxchange.org/jsf/core/widgets"
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                                 xmlns:p="http://primefaces.org/ui">
9
10         <ui:define name="metadata">
11                 <f:metadata>
12                         <f:viewParam name="userId" value="#{beanHelper.user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" converterMessage="#{msg.PARAMETER_USER_ID_INVALID}" />
13                         <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerUserConverted()}" />
14                 </f:metadata>
15         </ui:define>
16
17         <ui:define name="document_login_title">
18                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_USER_PROFILE}" />
19         </ui:define>
20
21         <ui:define name="document_guest_title">
22                 <h:outputText value="#{msg.PAGE_TITLE_INDEX_USER_PROFILE}" />
23         </ui:define>
24
25         <ui:define name="content_header">
26                 <h:outputText value="#{msg.CONTENT_TITLE_INDEX_USER_PROFILE}" />
27         </ui:define>
28
29         <ui:define name="content">
30                 <core:outputMessageBox id="error-user-profile-disabled" message="#{msg.ERROR_GUEST_USER_PROFILE_DISABLED}" messageStyleClass="alert-danger" rendered="#{not userController.isPublicUserProfileEnabled()}" />
31
32                 <core:outputMessageBox id="error-user-id-empty" message="#{msg.TABLE_HEADER_ERROR_HANDLING_USER_ID}" rendered="#{userController.isUserIdEmpty()}" />
33
34                 <ui:fragment rendered="#{userController.isPublicUserProfileEnabled()}">
35                         <core:outputMessageBox id="error-user-profile-hidden" message="#{msg.ERROR_PROFILE_NOT_VISIBLE}" messageStyleClass="alert-danger" rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}" />
36
37                         <ui:fragment rendered="#{profileController.isProfileLinkVisibleById(userController.userId)}">
38                                 <p:panelGrid styleClass="table table-full">
39                                         <f:facet name="header">
40                                                 <h:outputText value="#{msg.PUBLIC_USER_PROFILE}" />
41                                         </f:facet>
42                                         <!-- @TODO Unfinished -->
43                                 </p:panelGrid>
44                         </ui:fragment>
45                 </ui:fragment>
46         </ui:define>
47 </ui:composition>