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">
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>
11 <ui:define name="content_header">
12 #{msg.CONTENT_TITLE_LOGIN_SHARED_ADDRESSBOOKS}
15 <ui:define name="content">
16 <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
18 <div class="table_header">
19 #{msg.LOGIN_TABLE_HEADER_SHARED_ADDRESSBOOKS}
23 <h:dataTable id="sharedAddressbooks" var="share" value="#{shareController.allShares()}" headerClass="table_data_column" summary="#{msg.TABLE_SUMMARY_LOGIN_SHARED_ADDRESSBOOKS}" rendered="#{shareController.isSharingAddressbooks()}">
25 <f:facet name="header">#{msg.SHARED_ADDRESSBOOK}</f:facet>
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}" />
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)}" />
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" />
50 <h:outputText class="notice" value="#{msg.LOGIN_USER_HAS_NOT_SHARED_ADDRESSBOOKS}" rendered="#{not shareController.isSharingAddressbooks()}" />
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}" />
59 <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
60 <ui:include id="login_only" src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />