]> 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 <!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         <ui:composition template="/WEB-INF/templates/#{userLoginController.baseTemplatePathName}_base.tpl">
10                 <ui:define name="metadata">
11                         <f:metadata>
12                                 <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}">
13                                         <f:convertNumber for="userId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
14                                         <f:validator for="userId" validatorId="UserIdValidator" />
15                                 </f:viewParam>
16                         </f:metadata>
17                 </ui:define>
18
19                 <ui:define name="login_title">
20                         <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_USER_PROFILE}" />
21                 </ui:define>
22
23                 <ui:define name="guest_title">
24                         <h:outputText value="#{msg.PAGE_TITLE_INDEX_USER_PROFILE}" />
25                 </ui:define>
26
27                 <ui:define name="content_header">
28                         <h:outputText value="#{msg.CONTENT_TITLE_INDEX_USER_PROFILE}" />
29                 </ui:define>
30
31                 <ui:define name="content">
32                         <ui:fragment rendered="#{userController.isPublicUserProfileEnabled()}">
33                                 <ui:fragment rendered="#{userController.isUserIdEmpty()}">
34                                         <ui:include src="/WEB-INF/templates/user/userid_error.tpl" />
35                                 </ui:fragment>
36
37                                 <h:outputText value="#{msg.ERROR_PROFILE_NOT_VISIBLE}" rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}" />
38
39                                 <ui:fragment rendered="#{profileController.isProfileLinkVisibleById(userController.userId)}">
40                                         <div align="center">
41                                                 <h:panelGrid styleClass="table" headerClass="table_header" footerClass="table_footer">
42                                                         <f:facet name="header">
43                                                                 <h:outputText value="#{msg.PUBLIC_USER_PROFILE}" />
44                                                         </f:facet>
45                                                 </h:panelGrid>
46                                         </div>
47                                 </ui:fragment>
48                         </ui:fragment>
49
50                         <ui:fragment rendered="#{not userController.isPublicUserProfileEnabled()}">
51                                 <h:outputText styleClass="errors" value="#{msg.ERROR_GUEST_USER_PROFILE_DEACTIVATED}" />
52                         </ui:fragment>
53                 </ui:define>
54         </ui:composition>
55 </html>