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