]> git.mxchange.org Git - jjobs-war.git/blob - user/user_list.xhtml
Updated copyright year
[jjobs-war.git] / user / user_list.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         template="/WEB-INF/templates/guest/guest_base.tpl"
4         xmlns="http://www.w3.org/1999/xhtml"
5         xmlns:core="http://mxchange.org/jsf/core/widgets"
6         xmlns:links="http://mxchange.org/jsf/core/links"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
8         xmlns:h="http://xmlns.jcp.org/jsf/html"
9         xmlns:f="http://xmlns.jcp.org/jsf/core"
10         xmlns:p="http://primefaces.org/ui"
11         >
12
13         <ui:define name="document_guest_title">
14                 <h:outputText value="#{msg.PAGE_TITLE_USER_LIST}" />
15         </ui:define>
16
17         <ui:define name="content_header">
18                 <h:outputText value="#{msg.CONTENT_TITLE_USER_LIST}" />
19         </ui:define>
20
21         <ui:define name="content">
22                 <core:outputMessageBox panelGroupId="errorUserListDisabled" message="#{msg.ERROR_USER_LIST_DISABLED}" messageStyleClass="alert-danger" rendered="#{not featureController.isFeatureEnabled('user_list')}" />
23
24                 <h:panelGroup
25                         layout="block"
26                         rendered="#{featureController.isFeatureEnabled('user_list')}"
27                         >
28                         <div class="table-header">
29                                 <h:outputText value="#{msg.TABLE_HEADER_USER_LIST}" />
30                         </div>
31
32                         <p:dataTable
33                                 id="userList"
34                                 var="user"
35                                 value="#{userController.allUsers()}"
36                                 paginator="true"
37                                 rows="10"
38                                 summary="#{msg.TABLE_SUMMARY_USER_LIST}"
39                                 >
40                                 <ui:fragment rendered="#{profileController.isProfileLinkVisibleByUser(user)}">
41                                         <p:column>
42                                                 <f:facet name="header">
43                                                         <h:outputText value="#{msg.USER_NAME}" />
44                                                 </f:facet>
45
46                                                 <links:outputUserProfileLink user="#{user}" />
47                                         </p:column>
48
49                                         <p:column>
50                                                 <f:facet name="header">
51                                                         <h:outputText value="#{msg.USER_CREATED}" />
52                                                 </f:facet>
53
54                                                 <h:outputFormat id="userCreated" value="#{user.userCreated.time}" title="#{msg.USER_CREATED_TITLE}" />
55                                         </p:column>
56                                 </ui:fragment>
57                         </p:dataTable>
58                 </h:panelGroup>>
59         </ui:define>
60 </ui:composition>