]> git.mxchange.org Git - addressbook-war.git/blob - web/login/login_shared_addressbooks.xhtml
Introduced new template + renamed language constant + form field:
[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         <ui:composition template="/WEB-INF/templates/login/login_base.tpl">
9                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_SHARED_ADDRESSBOOKS}</ui:define>
10
11                 <ui:define name="content_header">
12                         #{msg.CONTENT_TITLE_LOGIN_SHARED_ADDRESSBOOKS}
13                 </ui:define>
14
15                 <ui:define name="content">
16                         <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
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="user_show_addressbook" title="#{msg.LINK_SHOW_ADDRESSBOOK_TITLE}">
28                                                                         <f:param name="addressbookId" 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                                                                 <ui:include src="/WEB-INF/templates/generic/user_profile_link.tpl">
36                                                                         <ui:param name="user" value="#{share.setShareUserSharee(shareUserSharer)}" />
37                                                                 </ui:include>
38                                                         </h:column>
39
40                                                         <h:column>
41                                                                 <f:facet name="header">#{msg.SHARE_CREATED}</f:facet>
42                                                                 <h:outputText id="shareCreated" value="#{share.shareCreated.time}" title="#{msg.SHARE_CREATED_TITLE}">
43                                                                         <f:convertDateTime for="shareCreated" type="both" timeStyle="short" dateStyle="medium" />
44                                                                 </h:outputText>
45                                                         </h:column>
46                                                 </h:dataTable>
47                                         </div>
48
49                                         <div class="para">
50                                                 <h:outputText class="notice" value="#{msg.LOGIN_USER_HAS_NOT_SHARED_ADDRESSBOOKS}" rendered="#{not shareController.isSharingAddressbooks()}" />
51                                         </div>
52
53                                         <div class="table_footer">
54                                                 <h:link id="shareAddressbook" outcome="user_list" title="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOKS_TITLE}" value="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOKS}" />
55                                         </div>
56                                 </div>
57                         </ui:fragment>
58
59                         <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
60                                 <ui:include id="login_only" class="login_only" src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />
61                         </ui:fragment>
62                 </ui:define>
63         </ui:composition>
64 </html>