]> git.mxchange.org Git - addressbook-war.git/blob - web/login/login_start_sharing_addressbook.xhtml
Continued:
[addressbook-war.git] / web / login / login_start_sharing_addressbook.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           xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
9
10         <ui:composition template="/WEB-INF/templates/#{loginController.templateType}/#{loginController.templateType}_base.tpl">
11                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_START_SHARING_ADDRESSBOOK}</ui:define>
12
13                 <ui:define name="content_header">
14                         #{msg.CONTENT_TITLE_LOGIN_START_SHARING_ADDRESSBOOK}
15                 </ui:define>
16
17                 <ui:define name="content">
18                         <div class="table_big">
19
20                                 <div class="table_header">
21                                         #{msg.TABLE_HEADER_CHOOSE_USER_FOR_SHARING}
22                                 </div>
23
24                                 <div class="para">
25                                         <c:choose>
26                                                 <c:when test="#{loginController.isUserLoggedIn() and not loginController.isInvisible()}">
27                                                         <h:dataTable id="userList" headerClass="table_header_column" var="user" value="#{addressbookController.allUsersNotSharing()}">
28                                                                 <h:column>
29                                                                         <f:facet name="header">#{msg.USER_ID}</f:facet>
30                                                                         <h:outputText value="#{user.userId}" />
31                                                                 </h:column>
32
33                                                                 <h:column>
34                                                                         <f:facet name="header">#{msg.USER_NAME}</f:facet>
35                                                                         <ui:include src="/WEB-INF/templates/generic/user_profile_link.tpl">
36                                                                                 <ui:param name="user" value="#{user}" />
37                                                                         </ui:include>
38                                                                 </h:column>
39
40                                                                 <h:column>
41                                                                         <f:facet name="header">#{msg.LOGIN_START_SHARING_TITLE}</f:facet>
42                                                                         <h:form acceptcharset="utf-8" id="startSharing" rendered="#{profileController.isProfileLinkVisible(user)}">
43                                                                                 <h:commandButton class="submit" id="submit" value="#{msg.LOGIN_START_SHARING_BUTTON}" action="#{shareController.startSharing(user, addressbookController.addressbook)}" title="#{msg.LOGIN_START_SHARING_BUTTON_TITLE}" />
44                                                                         </h:form>
45                                                                 </h:column>
46                                                         </h:dataTable>
47                                                 </c:when>
48                                                 <c:when test="#{not loginController.isUserLoggedIn()}">
49                                                                 <h:outputText id="ownProfileInvible" class="notice" value="#{msg.USER_NOT_LOGGED_IN}" />
50                                                 </c:when>
51                                                 <c:otherwise>
52                                                         <h:outputText id="ownProfileInvible" class="notice" value="#{msg.LOGIN_OWN_PROFILE_INVISIBLE}" />
53                                                 </c:otherwise>
54                                         </c:choose>
55                                 </div>
56
57                                 <div class="table_footer">
58                                         <ul>
59                                                 <li>#{msg.LOGIN_START_SHARING_NOTICE1}</li>
60                                                 <li>#{msg.LOGIN_START_SHARING_NOTICE2}</li>
61                                         </ul>
62                                 </div>
63                         </div>
64                 </ui:define>
65         </ui:composition>
66 </html>