]> git.mxchange.org Git - addressbook-war.git/blob - web/login/login_shared_addressbooks.xhtml
Why is this stupid JSF so complex? Why can't things be done more easier?
[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           xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
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                                                 <c:set value="#{share.shareUserSharee}" target="#{profileController}" property="user" />
25
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                                                 </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:define>
58         </ui:composition>
59 </html>