1 <?xml version="1.0" encoding="UTF-8" ?>
3 template="/WEB-INF/templates/admin/admin_base.tpl"
4 xmlns="http://www.w3.org/1999/xhtml"
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"
12 <ui:define name="document_admin_title">
13 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_EMPLOYEE}" />
16 <ui:define name="content_header">
17 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_EMPLOYEE}" />
20 <ui:define name="content">
21 <h:form id="form-list-company-employees">
25 value="#{employeeController.allEmployees()}"
26 filteredValue="#{employeeController.filteredEmployees}"
28 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
31 resizableColumns="true"
32 rowsPerPageTemplate="5,10,20,50,100"
34 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_EMPLOYEES}"
35 emptyMessage="#{msg.ADMIN_EMPTY_LIST_EMPLOYEES}"
36 widgetVar="employeeList"
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_EMPLOYEES_HEADER}" />
47 value="#{msg.SELECT_SHOWN_COLUMNS}"
48 styleClass="column-selector"
51 <p:columnToggler datasource="employeeList" trigger="toggler" />
57 headerText="#{msg.ID_HEADER}"
58 sortBy="#{employee.employeeId}"
62 outcome="admin_show_employee"
63 value="#{employee.employeeId}"
64 title="#{msg.ADMIN_LINK_SHOW_EMPLOYEE_TITLE}"
66 <f:param name="employeeId" value="#{employee.employeeId}" />
71 headerText="#{msg.EMPLOYEE_NUMBER_HEADER}"
72 sortBy="#{employee.employeeNumber}"
73 filterBy="#{employee.employeeNumber}"
74 filterMatchMode="contains"
76 <h:outputText value="#{employee.employeeNumber}" rendered="#{not empty employee.employeeNumber}" />
77 <h:outputText value="-" rendered="#{empty employee.employeeNumber}" />
81 headerText="#{msg.ADMIN_BRANCH_OFFICE_HEADER}"
82 sortBy="#{employee.employeeBranchOffice}"
83 filterBy="#{employee.employeeBranchOffice}"
86 <f:facet name="filter">
89 filterMatchMode="contains"
90 label="#{msg.LABEL_BRANCH_OFFICES}"
91 onchange="PF('employeeList').filter()"
93 title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}"
95 <f:converter converterId="BranchOfficeConverter" />
98 value="#{branchOfficeListController.allBranchOffices()}"
100 itemValue="#{branchOffice}"
101 itemLabel="#{beanHelper.renderBranchOffice(branchOffice)}"
103 </p:selectCheckboxMenu>
107 outcome="admin_show_branch_office"
108 value="#{beanHelper.renderBranchOffice(employee.employeeBranchOffice)}"
109 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_TITLE}"
110 rendered="#{not empty employee.employeeBranchOffice}"
112 <f:param name="branchId" value="#{employee.employeeBranchOffice.branchId}" />
116 outcome="admin_assign_branch_office"
117 value="#{msg.ADMIN_LINK_ASSIGN}"
118 title="#{msg.ADMIN_LINK_ASSIGN_EMPLOYEE_BRANCH_OFFICE_TITLE}"
119 rendered="#{empty employee.employeeBranchOffice}"
121 <f:param name="employeeId" value="#{employee.employeeId}" />
126 headerText="#{msg.ADMIN_USER_HEADER}"
127 sortBy="#{employee.employeeUserOwner}"
128 filterBy="#{employee.employeeUserOwner}"
131 <f:facet name="filter">
132 <p:selectCheckboxMenu
134 filterMatchMode="contains"
135 label="#{msg.LABEL_USERS}"
136 onchange="PF('employeeList').filter()"
137 updateLabel="true" title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}"
139 <f:converter converterId="UserConverter" />
142 value="#{userListController.allUsers}"
145 itemLabel="#{beanHelper.renderUser(user)}"
147 </p:selectCheckboxMenu>
151 outcome="admin_show_user"
152 value="#{employee.employeeUserOwner.userId}"
153 title="#{msg.ADMIN_LINK_SHOW_EMPLOYEES_OWNER_USER_TITLE}"
154 rendered="#{not empty employee.employeeUserOwner}"
156 <f:param name="userId" value="#{employee.employeeUserOwner.userId}" />
160 outcome="admin_assign_user_owner"
161 value="#{msg.ADMIN_LINK_ASSIGN}"
162 title="#{msg.ADMIN_LINK_ASSIGN_EMPLOYEES_OWNER_USER_TITLE}"
163 rendered="#{empty employee.employeeUserOwner}"
165 <f:param name="employeeId" value="#{employee.employeeId}" />
170 headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_HEADER}"
171 sortBy="#{employee.employeeBasicData}"
172 filterBy="#{employee.employeeBasicData}"
175 <f:facet name="filter">
176 <p:selectCheckboxMenu
178 filterMatchMode="contains"
179 label="#{msg.LABEL_COMPANIES}"
180 onchange="PF('employeeList').filter()"
182 title="#{msg.FILTER_BY_MULTIPLE_COMPANIES_TITLE}"
184 <f:converter converterId="BasicCompanyDataConverter" />
187 value="#{basicDataListController.allBasicData}"
189 itemValue="#{basicData}"
190 itemLabel="#{beanHelper.renderBasicData(basicData, true)}"
192 </p:selectCheckboxMenu>
196 outcome="admin_show_basic_data"
197 value="#{beanHelper.renderBasicData(employee.employeeBasicData, true)}"
198 title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
200 <f:param name="basicDataId" value="#{employee.employeeBasicData.basicDataId}" />
205 headerText="#{msg.DATA_EMAIL_ADDRESS}"
206 sortBy="#{employee.employeeEmailAddress}"
207 filterBy="#{employee.employeeEmailAddress}"
208 filterMatchMode="contains"
211 href="mailto:#{employee.employeeEmailAddress}"
212 value="#{employee.employeeEmailAddress}"
213 rendered="#{not empty employee.employeeEmailAddress}"
216 <h:outputText value="#{msg.NO_EMAIL_ADDRESS_ENTERED}" rendered="#{empty employee.employeeEmailAddress}" />
220 headerText="#{msg.ENTRY_CREATED_HEADER}"
221 sortBy="#{employee.employeeCreated}"
224 <h:outputText id="employeeCreated" value="#{employee.employeeCreated}">
225 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
230 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
234 <links:outputEmployeeAdminDropdownMenu employee="#{employee}" />
244 <f:facet name="header">
245 <h:outputText value="#{msg.ADMIN_ADD_EMPLOYEE_TITLE}" />
248 <h:outputText value="#{msg.ADMIN_ADD_EMPLOYEE_MINIMUM_DATA}" />
251 <ui:include src="/WEB-INF/templates/admin/employee/admin_form_employee_data.tpl" />
254 <f:facet name="footer">
255 <p:panelGrid columns="2" layout="grid">
258 value="#{msg.BUTTON_RESET_FORM}"
263 value="#{msg.BUTTON_ADMIN_ADD_EMPLOYEE}"
264 action="#{adminEmployeeController.addEmployee()}"
265 update="form-list-company-employees:employeeList"