]> git.mxchange.org Git - jjobs-war.git/blob - web/guest/user/user_profile.xhtml
New "feature" controller introduced: (please cherry-pick this)
[jjobs-war.git] / web / guest / user / user_profile.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         <f:metadata>
10                 <f:viewParam id="userId" name="userId" value="#{userController.userId}" required="true" requiredMessage="#{msg.PARAMETER_USER_ID_MISSING}" converterMessage="#{msg.PARAMETER_USER_ID_INVALID}" validatorMessage="#{msg.PARAMETER_USER_ID_NOT_FOUND}">
11                         <f:convertNumber for="userId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
12                         <f:validator for="userId" validatorId="UserIdValidator" />
13                 </f:viewParam>
14         </f:metadata>
15
16         <ui:composition template="/WEB-INF/templates/#{userLoginController.templateType}/#{userLoginController.templateType}_base.tpl">
17                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_USER_PROFILE}</ui:define>
18                 <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_USER_PROFILE}</ui:define>
19
20                 <ui:define name="content_header">
21                         #{msg.CONTENT_TITLE_INDEX_USER_PROFILE}
22                 </ui:define>
23
24                 <ui:define name="content">
25                         <ui:fragment rendered="#{userController.isPublicUserProfileEnabled()}">
26                                 <ui:fragment rendered="#{userController.isUserIdEmpty()}">
27                                         <ui:include src="/WEB-INF/templates/user/userid_error.tpl" />
28                                 </ui:fragment>
29
30                                 <h:outputText value="#{msg.ERROR_PROFILE_NOT_VISIBLE}" rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}" />
31
32                                 <ui:fragment rendered="#{profileController.isProfileLinkVisibleById(userController.userId)}">
33                                         <div align="center">
34                                                 <h:panelGrid styleClass="table" headerClass="table_header" footerClass="table_footer">
35                                                         <f:facet name="header">
36                                                                 <h:outputText value="#{msg.PUBLIC_USER_PROFILE}" />
37                                                         </f:facet>
38                                                 </h:panelGrid>
39                                         </div>
40                                 </ui:fragment>
41                         </ui:fragment>
42
43                         <ui:fragment rendered="#{not userController.isPublicUserProfileEnabled()}">
44                                 <h:outputText styleClass="errors" value="#{msg.ERROR_GUEST_USER_PROFILE_DEACTIVATED}" />
45                         </ui:fragment>
46                 </ui:define>
47         </ui:composition>
48 </html>