]> git.mxchange.org Git - jjobs-war.git/blob - web/user/addressbook/login_shared_addressbooks.xhtml
Updated copyright year
[jjobs-war.git] / web / user / addressbook / login_shared_addressbooks.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
5                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
6                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
7
8         <ui:define name="login_title">
9                 <h:outputText value="#{msg.PAGE_TITLE_LOGIN_SHARED_ADDRESSBOOKS}" />
10         </ui:define>
11
12         <ui:define name="content_header">
13                 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_SHARED_ADDRESSBOOKS}" />
14         </ui:define>
15
16         <ui:define name="content">
17                 <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
18                         <div class="table">
19                                 <div class="table_header">
20                                         <h:outputText value="#{msg.LOGIN_TABLE_HEADER_SHARED_ADDRESSBOOKS}" />
21                                 </div>
22
23                                 <div class="para">
24                                         <h:dataTable id="sharedAddressbooks" var="share" value="#{shareController.allShares()}" headerClass="table_data_column" summary="#{msg.TABLE_SUMMARY_LOGIN_SHARED_ADDRESSBOOKS}" rendered="#{shareController.isSharingAddressbooks()}">
25                                                 <h:column>
26                                                         <f:facet name="header">
27                                                                 <h:outputText value="#{msg.SHARED_ADDRESSBOOK}" />
28                                                         </f:facet>
29
30                                                         <h:link outcome="user_show_addressbook" title="#{msg.LINK_SHOW_ADDRESSBOOK_TITLE}">
31                                                                 <f:param name="addressbookId" value="#{share.shareAddressbook.addressbookId}" />
32                                                                 <h:outputText id="addressbookName" value="#{share.shareAddressbook.addressbookName}" title="#{msg.SHARED_ADDRESSBOOK_TITLE}" />
33                                                         </h:link>
34                                                 </h:column>
35
36                                                 <h:column>
37                                                         <f:facet name="header">
38                                                                 <h:outputText value="#{msg.SHAREE_USER_NAME}" />
39                                                         </f:facet>
40
41                                                         <ui:include src="/WEB-INF/templates/generic/user_profile_link.tpl">
42                                                                 <ui:param name="user" value="#{share.setShareUserSharee(shareUserSharer)}" />
43                                                         </ui:include>
44                                                 </h:column>
45
46                                                 <h:column>
47                                                         <f:facet name="header">
48                                                                 <h:outputText value="#{msg.SHARE_CREATED}" />
49                                                         </f:facet>
50
51                                                         <h:outputText id="shareCreated" value="#{share.shareCreated.time}" title="#{msg.SHARE_CREATED_TITLE}">
52                                                                 <f:convertDateTime for="shareCreated" type="both" timeStyle="short" dateStyle="medium" />
53                                                         </h:outputText>
54                                                 </h:column>
55                                         </h:dataTable>
56                                 </div>
57
58                                 <div class="para">
59                                         <h:outputText class="notice" value="#{msg.LOGIN_USER_HAS_NOT_SHARED_ADDRESSBOOKS}" rendered="#{not shareController.isSharingAddressbooks()}" />
60                                 </div>
61
62                                 <div class="table_footer">
63                                         <h:link id="shareAddressbook" outcome="user_list" title="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOKS_TITLE}" value="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOKS}" />
64                                 </div>
65                         </div>
66                 </ui:fragment>
67
68                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
69                         <ui:include src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />
70                 </ui:fragment>
71         </ui:define>
72 </ui:composition>