]> git.mxchange.org Git - jjobs-war.git/blob - web/user/user_list.xhtml
c:set is a trap:
[jjobs-war.git] / web / user / user_list.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_USER_LIST}</ui:define>
10
11                 <ui:define name="content_header">
12                         #{msg.CONTENT_TITLE_USER_LIST}
13                 </ui:define>
14
15                 <ui:define name="content">
16                         <div class="table_big">
17                                 <div class="table_header">
18                                         #{msg.TABLE_HEADER_USER_LIST}
19                                 </div>
20
21                                 <h:dataTable id="userList" var="user" value="#{userController.allVisibleUsers()}" headerClass="table_header_column25" summary="#{msg.TABLE_SUMMARY_USER_LIST}" rendered="#{userController.isVisibleUserFound()}">
22                                         <h:column>
23                                                 <f:facet name="header">#{msg.USER_ID}</f:facet>
24                                                 <ui:include src="/WEB-INF/templates/generic/user_profile_link.tpl">
25                                                         <ui:param name="user" value="#{user}" />
26                                                 </ui:include>
27                                         </h:column>
28
29                                         <h:column>
30                                                 <f:facet name="header">#{msg.USER_NAME}</f:facet>
31                                                 <ui:include src="/WEB-INF/templates/generic/user_profile_link.tpl">
32                                                         <ui:param name="user" value="#{user}" />
33                                                 </ui:include>
34                                         </h:column>
35
36                                         <h:column>
37                                                 <f:facet name="header">#{msg.USER_CREATED}</f:facet>
38                                                 <h:outputFormat id="userCreated" value="#{user.userCreated.time}" title="#{msg.USER_CREATED_TITLE}" />
39                                         </h:column>
40
41                                         <h:column>
42                                                 <f:facet name="header">#{msg.USER_LIST_SHARING_ADDRESSBOOKS}</f:facet>
43                                                 <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
44                                                         <h:link outcome="login_list_sharing_addressbooks" value="#{msg.LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS}" title="#{msg.LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS_TITLE}">
45                                                                 <f:param name="userId" value="#{user.userId}" />
46                                                         </h:link>
47                                                 </ui:fragment>
48                                                 <ui:fragment rendered="#{loginController.isGuest()}">
49                                                         <h:outputText id="userShared" value="#{addressbookController.countAllUserSharedAddressbooks(user)}" />
50                                                 </ui:fragment>
51                                         </h:column>
52                                 </h:dataTable>
53                         </div>
54                 </ui:define>
55         </ui:composition>
56 </html>