]> git.mxchange.org Git - jjobs-war.git/blob - web/guest/user/user_show_addressbook.xhtml
Please cherry-pick:
[jjobs-war.git] / web / guest / user / user_show_addressbook.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <f:metadata>
3         <f:viewParam id="addressbookId" name="addressbookId" value="#{addressbookController.addressbookId}" required="true" requiredMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_MISSING}" converterMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_INVALID}" validatorMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_NOT_FOUND}">
4                 <f:convertNumber for="addressbookId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
5                 <f:validator for="addressbookId" validatorId="AddressbookIdValidator" />
6         </f:viewParam>
7 </f:metadata>
8
9 <ui:composition template="/WEB-INF/templates/#{userLoginController.baseTemplatePathName}_base.tpl"
10                                 xmlns="http://www.w3.org/1999/xhtml"
11                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
12                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
13                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
14
15         <ui:define name="login_title">
16                 <h:outputText value="#{msg.PAGE_TITLE_USER_SHOW_ADDRESSBOOK}" />
17         </ui:define>
18
19         <ui:define name="guest_title">
20                 <h:outputText value="#{msg.PAGE_TITLE_INDEX_SHOW_ADDRESSBOOK}" />
21         </ui:define>
22
23         <ui:define name="content_header">
24                 <h:outputText value="#{msg.CONTENT_TITLE_USER_SHOW_ADDRESSBOOK}" />
25         </ui:define>
26
27         <ui:define name="content">
28                 <h:panelGrid headerClass="table_header" styleClass="table" columns="2" rendered="#{addressbookController.loadAddressbook()}">
29                         <f:facet name="header">
30                                 <h:outputText value="#{msg.TABLE_HEADER_SHOW_ADDRESSBOOK}" />
31                         </f:facet>
32
33                         <h:outputLabel for="addressbookName" styleClass="table_label">#{msg.ADDRESSBOOK_NAME}</h:outputLabel>
34                         <h:outputText id="addressbookName" value="#{addressbookController.addressbookName}" />
35
36                         <h:outputLabel for="userProfileLink" styleClass="table_label">#{msg.ADDRESSBOOK_OWNER}</h:outputLabel>
37                         <ui:include src="/WEB-INF/templates/user/user_profile_link.tpl">
38                                 <ui:param name="user" value="#{addressbookController.addressbookUser}" />
39                         </ui:include>
40
41                         <h:outputLabel for="addressbookCreated" styleClass="table_label">#{msg.ADDRESSBOOK_CREATED}</h:outputLabel>
42                         <h:outputFormat id="addressbookCreated" value="#{addressbookController.addressbook.addressbookCreated.time}" title="#{msg.ADDRESSBOOK_CREATED_TITLE}">
43                                 <f:convertDateTime for="addressbookCreated" type="both" timeStyle="short" dateStyle="medium" />
44                         </h:outputFormat>
45
46                         <h:outputLabel for="addressbookStatus" styleClass="table_label">#{msg.ADDRESSBOOK_STATUS}</h:outputLabel>
47                         <h:outputText id="addressbookStatus" value="#{msg[addressbookController.addressbook.addressbookStatus.messageKey]}" title="#{msg.ADDRESSBOOK_STATUS_TITLE}" />
48
49                         <f:facet name="footer">
50                                 <h:outputText id="ownProfileInvible" styleClass="notice" value="#{msg.USER_NOT_LOGGED_IN}" rendered="#{not userLoginController.isUserLoggedIn()}" />
51                                 <h:outputText id="ownProfileInvible" styleClass="notice" value="#{msg.LOGIN_OWN_PROFILE_INVISIBLE}" rendered="#{userLoginController.isUserLoggedIn() and userLoginController.isInvisible()}" />
52
53                                 <ui:fragment rendered="#{userLoginController.isUserLoggedIn() and not userLoginController.isInvisible()}">
54                                         <h:outputText value="Bla bla" rendered="#{addressbookController.isOtherAddressbook()}" />
55                                 </ui:fragment>
56                         </f:facet>
57                 </h:panelGrid>
58         </ui:define>
59 </ui:composition>