]> git.mxchange.org Git - addressbook-war.git/blob - web/login/login_start_sharing_addressbook.xhtml
Added nice boxes around current password input box
[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           xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
8
9         <ui:composition template="/WEB-INF/templates/#{loginController.templateType}/#{loginController.templateType}_base.tpl">
10                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_START_SHARING_ADDRESSBOOK}</ui:define>
11
12                 <ui:define name="content_header">
13                         #{msg.CONTENT_TITLE_LOGIN_START_SHARING_ADDRESSBOOK}
14                 </ui:define>
15
16                 <ui:define name="content">
17                         <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
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                                                 <h:outputText id="userNotLoggedIn" class="notice" value="#{msg.USER_NOT_LOGGED_IN}" rendered="#{not loginController.isUserLoggedIn()}" />
26
27                                                 <h:dataTable id="userList" headerClass="table_header_column" var="user" value="#{addressbookController.allUsersNotSharing()}" rendered="#{loginController.isUserLoggedIn() and not empty addressbookController.addressbook and not loginController.isInvisible()}">
28
29                                                         <h:column>
30                                                                 <f:facet name="header">#{msg.USER_ID}</f:facet>
31                                                                 <h:outputText value="#{user.userId}" />
32                                                         </h:column>
33
34                                                         <h:column>
35                                                                 <f:facet name="header">#{msg.USER_NAME}</f:facet>
36                                                                 <ui:include src="/WEB-INF/templates/generic/user_profile_link.tpl">
37                                                                         <ui:param name="user" value="#{user}" />
38                                                                 </ui:include>
39                                                         </h:column>
40
41                                                         <h:column>
42                                                                 <f:facet name="header">#{msg.LOGIN_START_SHARING_TITLE}</f:facet>
43                                                                 <h:form acceptcharset="utf-8" id="startSharing" rendered="#{profileController.isProfileLinkVisibleByUser(user)}">
44                                                                         <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}" />
45                                                                 </h:form>
46                                                         </h:column>
47                                                 </h:dataTable>
48
49                                                 <h:outputText id="addressbokUnset" class="notice" value="#{msg.LOGIN_ADDRESSBOOK_NOT_SET}" rendered="#{empty addressbookController.addressbook}" />
50
51                                                 <h:outputText id="ownProfileInvisible" class="notice" value="#{msg.LOGIN_OWN_PROFILE_INVISIBLE}" rendered="#{loginController.isUserLoggedIn() and not empty addressbookController.addressbook and not loginController.isInvisible()}" />
52                                         </div>
53
54                                         <div class="table_footer">
55                                                 <ul>
56                                                         <li>#{msg.LOGIN_START_SHARING_NOTICE1}</li>
57                                                         <li>#{msg.LOGIN_START_SHARING_NOTICE2}</li>
58                                                 </ul>
59                                         </div>
60                                 </div>
61                         </ui:fragment>
62
63                         <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
64                                 <ui:include id="login_only" class="login_only" src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />
65                         </ui:fragment>
66                 </ui:define>
67         </ui:composition>
68 </html>