]> git.mxchange.org Git - jjobs-war.git/blob - web/guest/user/user_profile.xhtml
used more <h:outputText value="#{msg.BLA_MESSAGE}" /> instead of directly having...
[jjobs-war.git] / web / guest / user / user_profile.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5         xmlns="http://www.w3.org/1999/xhtml"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core">
9
10         <f:metadata>
11                 <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}">
12                         <f:convertNumber for="userId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
13                         <f:validator for="userId" validatorId="UserIdValidator" />
14                 </f:viewParam>
15         </f:metadata>
16
17         <ui:composition template="/WEB-INF/templates/#{userLoginController.templateType}/#{userLoginController.templateType}_base.tpl">
18                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_USER_PROFILE}</ui:define>
19                 <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_USER_PROFILE}</ui:define>
20
21                 <ui:define name="content_header">
22                         #{msg.CONTENT_TITLE_INDEX_USER_PROFILE}
23                 </ui:define>
24
25                 <ui:define name="content">
26                         <ui:fragment rendered="#{userController.isPublicUserProfileEnabled()}">
27                                 <ui:fragment rendered="#{userController.isUserIdEmpty()}">
28                                         <ui:include src="/WEB-INF/templates/user/userid_error.tpl" />
29                                 </ui:fragment>
30
31                                 <h:outputText value="#{msg.ERROR_PROFILE_NOT_VISIBLE}" rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}" />
32
33                                 <ui:fragment rendered="#{profileController.isProfileLinkVisibleById(userController.userId)}">
34                                         <div align="center">
35                                                 <h:panelGrid styleClass="table" headerClass="table_header" footerClass="table_footer">
36                                                         <f:facet name="header">
37                                                                 <h:outputText value="#{msg.PUBLIC_USER_PROFILE}" />
38                                                         </f:facet>
39                                                 </h:panelGrid>
40                                         </div>
41                                 </ui:fragment>
42                         </ui:fragment>
43
44                         <ui:fragment rendered="#{not userController.isPublicUserProfileEnabled()}">
45                                 <h:outputText styleClass="errors" value="#{msg.ERROR_GUEST_USER_PROFILE_DEACTIVATED}" />
46                         </ui:fragment>
47                 </ui:define>
48         </ui:composition>
49 </html>