]> git.mxchange.org Git - addressbook-war.git/blob - web/login/login_shared_addressbooks.xhtml
Continued:
[addressbook-war.git] / web / login / 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 xmlns="http://www.w3.org/1999/xhtml"
4           xmlns:ui="http://java.sun.com/jsf/facelets"
5           xmlns:h="http://xmlns.jcp.org/jsf/html"
6           xmlns:f="http://xmlns.jcp.org/jsf/core"
7           >
8
9         <ui:composition template="/WEB-INF/templates/login/login_base.tpl">
10                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_SHARED_ADDRESSBOOKS}</ui:define>
11
12                 <ui:define name="content_header">
13                         #{msg.CONTENT_TITLE_LOGIN_SHARED_ADDRESSBOOKS}
14                 </ui:define>
15
16                 <ui:define name="content">
17                         <div class="table">
18                                 <div class="table_header">
19                                         #{msg.LOGIN_TABLE_HEADER_SHARED_ADDRESSBOOKS}
20                                 </div>
21
22                                 <div class="para">
23                                         <h:dataTable id="sharedAddressbooks" var="share" value="#{shareController.allShares()}" headerClass="table_data_column" summary="#{msg.TABLE_SUMMARY_LOGIN_SHARED_ADDRESSBOOKS}" rendered="#{shareController.isSharingAddressbooks()}">
24                                                 <h:column>
25                                                         <f:facet name="header">#{msg.SHARED_ADDRESSBOOK}</f:facet>
26
27                                                         <h:link outcome="login_show_addressbook" title="#{msg.LINK_LOGIN_SHOW_ADDRESS_BOOK_TITLE}">
28                                                                 <f:param name="addressbook_id" value="#{share.shareAddressbook.addressbookId}" />
29                                                                 <h:outputText id="addressbookName" value="#{share.shareAddressbook.addressbookName}" title="#{msg.SHARED_ADDRESSBOOK_TITLE}" />
30                                                         </h:link>
31                                                 </h:column>
32
33                                                 <h:column>
34                                                         <f:facet name="header">#{msg.SHAREE_USER_NAME}</f:facet>
35                                                         <h:link outcome="user_profile" title="#{msg.LINK_USER_PROFILE_TITLE}">
36                                                                 <h:outputText id="shareeUserName" value="#{share.shareUserSharee.userName}" title="#{msg.SHAREEE_USER_NAME_TITLE}" />
37                                                                 <f:param name="userId" value="#{share.shareUserSharee.userId}" />
38                                                         </h:link>
39                                                 </h:column>
40
41                                                 <h:column>
42                                                         <f:facet name="header">#{msg.SHARE_CREATED}</f:facet>
43                                                         <h:outputText id="shareCreated" value="#{share.shareCreated.time}" title="#{msg.SHARE_CREATED_TITLE}">
44                                                                 <f:convertDateTime for="shareCreated" type="both" timeStyle="short" dateStyle="medium" />
45                                                         </h:outputText>
46                                                 </h:column>
47                                         </h:dataTable>
48                                 </div>
49
50                                 <div class="para">
51                                         <h:outputText class="notice" value="#{msg.LOGIN_USER_HAS_NOT_SHARED_ADDRESSBOOKS}" rendered="#{shareController.isSharingAddressbooks() == false}" />
52                                 </div>
53
54                                 <div class="table_footer">
55                                         <h:link id="shareAddressbook" outcome="user_list" title="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOKS_TITLE}" value="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOKS}" />
56                                 </div>
57                         </div>
58                 </ui:define>
59         </ui:composition>
60 </html>