1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:core="http://mxchange.org/jsf/core/widgets"
5 xmlns:links="http://mxchange.org/jsf/core/links"
6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7 xmlns:h="http://xmlns.jcp.org/jsf/html"
8 xmlns:f="http://xmlns.jcp.org/jsf/core"
9 xmlns:p="http://primefaces.org/ui">
11 <ui:define name="document_admin_title">
12 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_USER}" />
15 <ui:define name="content_header">
16 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_USER}" />
19 <ui:define name="content">
20 <h:form id="form-list-users">
24 value="#{userController.allUsers()}"
25 tableStyleClass="table table-full"
27 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
28 filteredValue="#{userController.filteredUsers}"
31 resizableColumns="true"
32 rowsPerPageTemplate="5,10,20,50,100"
34 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_USERS}"
35 emptyMessage="#{msg.ADMIN_EMPTY_LIST_USER}"
39 <f:facet name="header">
40 <p:panelGrid columns="2" columnClasses="ui-grid-col-10,ui-grid-col-2" layout="grid" styleClass="ui-noborder ui-transparent-widget">
41 <h:outputText value="#{msg.ADMIN_LIST_USERS_HEADER}" />
43 <p:commandButton id="toggler" type="button" value="#{msg.SELECT_SHOWN_COLUMNS}" styleClass="column-selector" />
44 <p:columnToggler datasource="userList" trigger="toggler" />
48 <p:column headerText="#{msg.ADMIN_USER_ID}" sortBy="#{user.userId}" filterBy="#{user.userId}" filterMatchMode="contains">
49 <p:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{user.userId}">
50 <f:param name="userId" value="#{user.userId}" />
54 <p:column headerText="#{msg.ADMIN_LIST_USER_NAME}" sortBy="#{user.userName}" filterBy="#{user.userName}" filterMatchMode="contains" rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
55 <h:outputText value="#{user.userName}" />
58 <p:column headerText="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" sortBy="#{user.userContact.contactPersonalTitle}" filterBy="#{user.userContact.contactPersonalTitle}" filterMatchMode="exact">
59 <f:facet name="filter">
62 filterMatchMode="contains"
63 label="#{msg.LABEL_PERSONAL_TITLES}"
64 onchange="PF('userList').filter()"
65 title="#{msg.FILTER_BY_SINGLE_PERSONAL_TITLE}"
67 <f:converter converterId="PersonalTitleConverter" />
69 value="#{dataController.personalTitles}"
71 itemValue="#{personalTitle}"
72 itemLabel="#{msg[personalTitle.messageKey]}"
77 <h:outputText value="#{msg[user.userContact.contactPersonalTitle.messageKey]}" />
80 <p:column headerText="#{msg.ADMIN_CONTACT_FIRST_NAME}" sortBy="#{user.userContact.contactFirstName}" filterBy="#{user.userContact.contactFirstName}" filterMatchMode="contains">
81 <h:outputText value="#{user.userContact.contactFirstName}" />
84 <p:column headerText="#{msg.ADMIN_CONTACT_FAMILY_NAME}" sortBy="#{user.userContact.contactFamilyName}" filterBy="#{user.userContact.contactFamilyName}" filterMatchMode="contains">
85 <h:outputText value="#{user.userContact.contactFamilyName}" />
88 <p:column headerText="#{msg.ADMIN_USER_ACCOUNT_STATUS}" sortBy="#{user.userAccountStatus}" filterBy="#{user.userAccountStatus}" filterMatchMode="exact">
89 <f:facet name="filter">
92 filterMatchMode="contains"
93 label="#{msg.LABEL_ACCOUNT_STATUS}"
94 onchange="PF('userList').filter()"
95 title="#{msg.FILTER_BY_SINGLE_ACCOUNT_STATUS_TITLE}"
97 <f:converter converterId="UserAccountStatusConverter" />
99 value="#{dataController.userAccountStatuses}"
101 itemValue="#{accountStatus}"
102 itemLabel="#{msg[accountStatus.messageKey]}"
107 <h:outputText styleClass="#{user.userAccountStatus.styleClass}" value="#{msg[user.userAccountStatus.messageKey]}" />
110 <p:column headerText="#{msg.ADMIN_USER_PROFILE_MODE}" sortBy="#{user.userProfileMode}" filterBy="#{user.userProfileMode}" filterMatchMode="exact">
111 <f:facet name="filter">
114 filterMatchMode="contains"
115 label="#{msg.LABEL_PROFILE_MODE}"
116 onchange="PF('userList').filter()"
117 title="#{msg.FILTER_BY_SINGLE_PROFILE_MODE_TITLE}"
119 <f:converter converterId="ProfileModeConverter" />
121 value="#{dataController.profileModes}"
123 itemValue="#{profileMode}"
124 itemLabel="#{msg[profileMode.messageKey]}"
129 <h:outputText value="#{msg[user.userProfileMode.messageKey]}" />
132 <p:column headerText="#{msg.ENTRY_CREATED_HEADER}" sortBy="#{user.userCreated}" filterable="false">
133 <h:outputText id="userCreated" value="#{user.userCreated.time}">
134 <f:convertDateTime for="userCreated" type="both" timeStyle="short" dateStyle="short" />
138 <p:column headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}" sortable="false" filterable="false">
139 <links:outputUserAdminMiniLinks user="#{user}" />
145 <p:panelGrid columns="1" styleClass="table table-full" layout="grid">
146 <f:facet name="header">
147 <h:outputText value="#{msg.ADMIN_ADD_USER_TITLE}" />
150 <!-- Whether select contact data .. //-->
152 @TODO title="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND_TITLE}"
154 <p:fieldset legend="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND}">
155 <p:panelGrid columns="2" columnClasses="ui-grid-col-3,ui-grid-col-9" styleClass="table table-full ui-noborder" layout="grid">
156 <p:outputLabel for="userContact" value="#{msg.ADMIN_SELECT_USER_CONTACT}" />
159 value="#{adminUserController.contact}"
161 filterMatchMode="contains"
163 <f:converter converterId="ContactConverter" />
164 <f:selectItems value="#{contactController.selectableContacts()}" var="contact" itemValue="#{contact}" itemLabel="#{contact.contactId}: #{msg[contact.contactPersonalTitle.messageKey]} #{contact.contactFirstName} #{contact.contactFamilyName}" />
169 <h:panelGroup layout="block">
170 <h:outputText value="#{msg.ADMIN_ADD_OR_ENTER_CONTACT_DATA}" />
173 <!-- ... or enter it directly together it creating user account //-->
174 <h:panelGroup layout="block">
175 <core:outputAdminUserDataFormFields mode="add" />
177 <h:panelGroup styleClass="para notice">
178 <h:outputText value="#{msg.ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE}" />
181 <core:outputAdminContactDataFormFields allowEmptyRequiredData="true" />
184 <f:facet name="footer">
185 <p:panelGrid columns="2" layout="grid">
186 <p:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
192 value="#{msg.BUTTON_ADMIN_ADD_USER}"
193 action="#{adminUserController.addUser()}"
194 update=":master:form-list-users:userList"