]> git.mxchange.org Git - addressbook-war.git/blob - web/user/login_shared_addressbooks.xhtml
Continued porting templates:
[addressbook-war.git] / web / user / login_shared_addressbooks.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         <ui:composition template="/WEB-INF/templates/login/login_base.tpl">
11                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_SHARED_ADDRESSBOOKS}</ui:define>
12
13                 <ui:define name="content_header">
14                         #{msg.CONTENT_TITLE_LOGIN_SHARED_ADDRESSBOOKS}
15                 </ui:define>
16
17                 <ui:define name="content">
18                         <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
19                                 <div class="table">
20                                         <div class="table_header">
21                                                 #{msg.LOGIN_TABLE_HEADER_SHARED_ADDRESSBOOKS}
22                                         </div>
23
24                                         <div class="para">
25                                                 <h:dataTable id="sharedAddressbooks" var="share" value="#{shareController.allShares()}" headerClass="table_data_column" summary="#{msg.TABLE_SUMMARY_LOGIN_SHARED_ADDRESSBOOKS}" rendered="#{shareController.isSharingAddressbooks()}">
26                                                         <h:column>
27                                                                 <f:facet name="header">#{msg.SHARED_ADDRESSBOOK}</f:facet>
28
29                                                                 <h:link outcome="user_show_addressbook" title="#{msg.LINK_SHOW_ADDRESSBOOK_TITLE}">
30                                                                         <f:param name="addressbookId" value="#{share.shareAddressbook.addressbookId}" />
31                                                                         <h:outputText id="addressbookName" value="#{share.shareAddressbook.addressbookName}" title="#{msg.SHARED_ADDRESSBOOK_TITLE}" />
32                                                                 </h:link>
33                                                         </h:column>
34
35                                                         <h:column>
36                                                                 <f:facet name="header">#{msg.SHAREE_USER_NAME}</f:facet>
37                                                                 <ui:include src="/WEB-INF/templates/generic/user_profile_link.tpl">
38                                                                         <ui:param name="user" value="#{share.setShareUserSharee(shareUserSharer)}" />
39                                                                 </ui:include>
40                                                         </h:column>
41
42                                                         <h:column>
43                                                                 <f:facet name="header">#{msg.SHARE_CREATED}</f:facet>
44                                                                 <h:outputText id="shareCreated" value="#{share.shareCreated.time}" title="#{msg.SHARE_CREATED_TITLE}">
45                                                                         <f:convertDateTime for="shareCreated" type="both" timeStyle="short" dateStyle="medium" />
46                                                                 </h:outputText>
47                                                         </h:column>
48                                                 </h:dataTable>
49                                         </div>
50
51                                         <div class="para">
52                                                 <h:outputText class="notice" value="#{msg.LOGIN_USER_HAS_NOT_SHARED_ADDRESSBOOKS}" rendered="#{not shareController.isSharingAddressbooks()}" />
53                                         </div>
54
55                                         <div class="table_footer">
56                                                 <h:link id="shareAddressbook" outcome="user_list" title="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOKS_TITLE}" value="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOKS}" />
57                                         </div>
58                                 </div>
59                         </ui:fragment>
60
61                         <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
62                                 <ui:include src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />
63                         </ui:fragment>
64                 </ui:define>
65         </ui:composition>
66 </html>