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: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"
13 <ui:define name="document_admin_title">
14 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_BRANCH_OFFICES}" />
17 <ui:define name="content_header">
18 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_BRANCH_OFFICES}" />
21 <ui:define name="content">
22 <h:form id="form-list-branch-offices">
26 value="#{branchOfficeListController.allBranchOffices()}"
28 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
29 filteredValue="#{branchOfficeListController.filteredBranchOffices}"
31 rowKey="#{branchOffice.branchId}"
33 resizableColumns="true"
34 rowsPerPageTemplate="5,10,20,50,100"
36 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICES}"
37 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICES}"
38 widgetVar="branchOfficeList"
39 selectionMode="single"
40 selection="#{branchOfficeListController.selectedBranchOffice}"
44 <f:facet name="header">
48 columnClasses="ui-grid-col-4,ui-grid-col-6,ui-grid-col-2"
54 columnClasses="ui-grid-4,ui-grid-8"
56 styleClass="ui-noborder"
58 <p:outputLabel for="globalFilter" value="#{msg.SEARCH_ALL_FIELDS}" style="float: right" />
59 <p:inputText id="globalFilter" onkeyup="PF('branchOfficeList').filter()" placeholder="#{msg.ENTER_KEYWORD}"/>
63 <p:spacer height="4" />
68 value="#{msg.SELECT_SHOWN_COLUMNS}"
69 styleClass="column-selector"
72 <p:columnToggler datasource="branchOfficeList" trigger="toggler" />
79 update=":master:form-list-branch-offices:branchOffice-details"
80 oncomplete="PF('branchOfficeDialog').show()"
83 <p:column headerText="#{msg.ID_HEADER}" sortBy="#{branchOffice.branchId}" filterable="false">
84 <p:link outcome="admin_show_branch_office" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_TITLE}" value="#{branchOffice.branchId}">
85 <f:param name="branchId" value="#{branchOffice.branchId}" />
89 <p:column headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_HEADER}" sortBy="#{branchOffice.branchCompany}" filterBy="#{branchOffice.branchCompany}" filterMatchMode="in">
90 <f:facet name="filter">
93 filterMatchMode="contains"
94 label="#{msg.LABEL_COMPANIES}"
95 onchange="PF('branchOfficeList').filter()"
97 title="#{msg.FILTER_BY_MULTIPLE_COMPANIES_TITLE}"
99 <f:converter converterId="BasicCompanyDataConverter" />
102 value="#{basicDataListController.allBasicData}"
104 itemValue="#{basicData}"
105 itemLabel="#{beanHelper.renderBasicData(basicData)}"
107 </p:selectCheckboxMenu>
110 <p:link outcome="admin_show_basic_data" value="#{beanHelper.renderBasicData(branchOffice.branchCompany)}" title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}">
111 <f:param name="basicDataId" value="#{branchOffice.branchCompany.basicDataId}" />
115 <p:column headerText="#{msg.ADMIN_ASSIGNED_USER_HEADER}" sortBy="#{branchOffice.branchUserOwner}" filterBy="#{branchOffice.branchUserOwner}" filterMatchMode="in">
116 <f:facet name="filter">
117 <p:selectCheckboxMenu
119 filterMatchMode="contains"
120 label="#{msg.LABEL_USERS}"
121 onchange="PF('branchOfficeList').filter()"
123 title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}"
125 <f:converter converterId="UserConverter" />
128 value="#{userController.allUsers()}"
131 itemLabel="#{beanHelper.renderUser(user)}"
133 </p:selectCheckboxMenu>
136 <p:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}" value="#{beanHelper.renderUser(branchOffice.branchUserOwner)}" rendered="#{not empty branchOffice.branchUserOwner}">
137 <f:param name="userId" value="#{branchOffice.branchUserOwner.userId}" />
140 <p:link outcome="admin_assign_branch_office_owner" title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_OWNER_USER_TITLE}" value="#{msg.ADMIN_LINK_ASSIGN}" rendered="#{empty branchOffice.branchUserOwner}">
141 <f:param name="branchId" value="#{branchOffice.branchId}" />
145 <p:column headerText="#{msg.DATA_EMAIL_ADDRESS}" sortBy="#{branchOffice.branchEmailAddress}" filterBy="#{branchOffice.branchEmailAddress}" filterMatchMode="contains">
146 <p:link href="mailto:#{branchOffice.branchEmailAddress}" value="#{branchOffice.branchEmailAddress}" rendered="#{not empty branchOffice.branchEmailAddress}" />
148 <h:outputText value="#{msg.NO_EMAIL_ADDRESS_ENTERED}" rendered="#{empty branchOffice.branchEmailAddress}" />
151 <p:column headerText="#{msg.DATA_ADDRESS}" sortBy="#{branchOffice.branchCity}" filterBy="#{branchOffice.branchCity}" filterMatchMode="contains">
152 <h:outputText value="#{beanHelper.renderBranchOffice(branchOffice)}" title="#{beanHelper.renderBranchOffice(branchOffice)}" />
155 <p:column headerText="#{msg.ADMIN_COMPANY_CONTACT_PERSON_HEADER}" sortBy="#{branchOffice.branchContactEmployee}" filterBy="#{branchOffice.branchContactEmployee}" filterMatchMode="in">
156 <f:facet name="filter">
157 <p:selectCheckboxMenu
159 filterMatchMode="contains"
160 label="#{msg.LABEL_EMPLOYEES}"
161 onchange="PF('branchOfficeList').filter()"
163 title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}"
165 <f:converter converterId="EmployeeConverter" />
168 value="#{employeeController.allEmployees()}"
170 itemValue="#{employee}"
171 itemLabel="#{beanHelper.renderEmployee(employee)}"
173 </p:selectCheckboxMenu>
176 <p:link outcome="admin_show_employee" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}" value="#{beanHelper.renderEmployee(branchOffice.branchContactEmployee)}" rendered="#{not empty branchOffice.branchContactEmployee}">
177 <f:param name="employeeId" value="#{branchOffice.branchContactEmployee.employeeId}" />
180 <p:link outcome="admin_assign_branch_office_employee" title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_CONTACT_PERSON_TITLE}" value="#{msg.ADMIN_LINK_ASSIGN}" rendered="#{empty branchOffice.branchContactEmployee}">
181 <f:param name="branchId" value="#{branchOffice.branchId}" />
185 <p:column headerText="#{msg.ENTRY_CREATED_HEADER}" sortBy="#{branchOffice.branchCreated}" filterable="false">
186 <h:outputText id="branchCreated" value="#{branchOffice.branchCreated}">
187 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
191 <p:column headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}" sortable="false" filterable="false">
192 <links:outputBranchOfficeAdminDropdownMenu branchOffice="#{branchOffice}" />
200 header="#{msg.ADMIN_SINGLE_BRANCH_OFFICE_DETAILS_HEADER}"
203 widgetVar="branchOfficeDialog"
207 <p:outputPanel id="branchOffice-details">
209 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_DATA_TAB_TITLE}">
210 <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
211 <f:facet name="header">
212 <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_BASIC_DETAILS_HEADER}">
213 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
217 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.BRANCH_OFFICE_ID_NUMBER_TITLE}" />
218 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
220 <p:outputLabel value="#{msg.BRANCH_OFFICE_NUMBER_HEADER}" title="#{msg.BRANCH_OFFICE_NUMBER_TITLE}" />
221 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchNumber}" />
223 <p:outputLabel value="#{msg.ASSIGNED_BASIC_DATA_HEADER}" title="#{msg.ASSIGNED_BASIC_DATA_TO_BRANCH_OFFICE_TITLE}" />
224 <p:link outcome="admin_show_basic_data" target="_blank" value="#{beanHelper.renderBasicData(branchOfficeListController.selectedBranchOffice.branchCompany)}" title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}">
225 <f:param name="basicDataId" value="#{branchOfficeListController.selectedBranchOffice.branchCompany.basicDataId}" />
228 <p:outputLabel value="#{msg.ASSIGNED_CONTACT_PERSON_HEADER}" title="#{msg.ASSIGNED_CONTACT_PERSON_TO_BRANCH_OFFICE_TITLE}" />
229 <p:link outcome="admin_show_employee" target="_blank" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}" value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchContactEmployee)}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}">
230 <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
232 <h:outputText value="#{msg.NO_CONTACT_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}" />
234 <p:outputLabel value="#{msg.ASSIGNED_OWNER_EMPLOYEE_HEADER}" title="#{msg.ASSIGNED_OWNER_EMPLOYEE_TO_BRANCH_OFFICE_TITLE}" />
235 <p:link outcome="admin_show_employee" target="_blank" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_EMPLOYEE_TITLE}" value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchOwnerEmployee)}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}">
236 <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
238 <h:outputText value="#{msg.NO_OWNER_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}" />
240 <p:outputLabel value="#{msg.ASSIGNED_USER_OWNER_HEADER}" title="#{msg.ASSIGNED_USER_OWNER_TO_BRANCH_OFFICE_TITLE}" />
241 <p:link outcome="admin_show_user" target="_blank" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}" value="#{beanHelper.renderUser(branchOfficeListController.selectedBranchOffice.branchUserOwner)}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchUserOwner}">
242 <f:param name="userId" value="#{branchOfficeListController.selectedBranchOffice.branchUserOwner.userId}" />
244 <h:outputText value="#{msg.NO_USER_ASSIGNED_AS_OWNER_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchUserOwner}" />
246 <p:outputLabel value="#{msg.EMAIL_ADDRESS_HEADER}" title="#{msg.EMAIL_ADDRESS_OF_BRANCH_OFFICE_TITLE}" />
247 <h:outputLink value="mailto:#{branchOfficeListController.selectedBranchOffice.branchEmailAddress}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
248 <h:outputText value="#{msg.BRANCH_OFFICE_HAS_NO_EMAIL_ADDRESS}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
250 <p:outputLabel value="#{msg.LANDLINE_NUMBER_HEADER}" title="#{msg.ASSIGNED_LANDLINE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
252 outcome="admin_show_landline"
253 value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchLandLineNumber)}"
255 title="#{msg.ADMIN_LINK_SHOW_LAND_LINE_NUMBER_TITLE}"
256 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}"
258 <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchLandLineNumber.phoneId}" />
260 <h:outputText value="#{msg.NO_LANDLINE_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}" />
262 <p:outputLabel value="#{msg.FAX_NUMBER_HEADER}" title="#{msg.ASSIGNED_FAX_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
264 outcome="admin_show_fax"
265 value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchFaxNumber)}"
267 title="#{msg.ADMIN_LINK_SHOW_FAX_NUMBER_TITLE}"
268 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}"
270 <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchFaxNumber.phoneId}" />
272 <h:outputText value="#{msg.NO_FAX_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}" />
276 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_TAB_TITLE}">
277 <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
278 <f:facet name="header">
279 <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_DETAILS_HEADER}">
280 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
284 <p:outputLabel value="#{msg.STREET_NAME_HEADER}" title="#{msg.STREET_NAME_OF_BRANCH_OFFICE_TITLE}" />
285 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStreet}" />
287 <p:outputLabel value="#{msg.HOUSE_NUMBER_HEADER}" title="#{msg.HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
288 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumber}" />
290 <p:outputLabel value="#{msg.LAST_HOUSE_NUMBER_HEADER}" title="#{msg.LAST_HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
291 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchLastHouseNumber}" />
293 <p:outputLabel value="#{msg.HOUSE_NUMBER_EXTENSION_HEADER}" title="#{msg.HOUSE_NUMBER_EXTENSION_OF_BRANCH_OFFICE_TITLE}" />
294 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumberExtension}" />
296 <p:outputLabel value="#{msg.STORE_HEADER}" title="#{msg.STORE_OF_BRANCH_OFFICE_TITLE}" />
297 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStore}" />
299 <p:outputLabel value="#{msg.SUITE_NUMBER_HEADER}" title="#{msg.SUITE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
300 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchSuiteNumber}" />
302 <p:outputLabel value="#{msg.ZIP_CODE_HEADER}" title="#{msg.ZIP_CODE_OF_BRANCH_OFFICE_TITLE}" />
303 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchZipCode}" />
305 <p:outputLabel value="#{msg.CITY_HEADER}" title="#{msg.CITY_OF_BRANCH_OFFICE_TITLE}" />
306 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchCity}" />
308 <p:outputLabel value="#{msg.COUNTRY_HEADER}" title="#{msg.COUNTRY_OF_BRANCH_OFFICE_TITLE}" />
309 <h:outputText value="#{beanHelper.renderCountry(branchOfficeListController.selectedBranchOffice.branchCountry)}" />
313 <p:tab title="#{msg.ADMIN_OPENING_TIMES_TAB_TITLE}">
314 <core:outputOpeningTimesDataTable
315 id="branchOpeningTimeDetailList"
316 value="#{branchOfficeListController.selectedBranchOffice.branchOpeningTimes}"
318 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
319 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
320 widgetVar="branchOpeningTimeDetailList"
321 headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
334 <f:facet name="header">
335 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_TITLE}" />
338 <h:panelGroup styleClass="para" layout="block">
339 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_MINIMUM_DATA}" />
342 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl" />
344 <f:facet name="footer">
345 <p:panelGrid columns="2" layout="grid">
348 value="#{msg.BUTTON_RESET_FORM}"
353 value="#{msg.BUTTON_ADMIN_ADD_BASIC_DATA}"
354 action="#{adminBranchOfficeController.addBranchOffice()}"
355 update=":master:form-list-branch-offices:branchOfficeList"
356 oncomplete="PF('branchOfficeList').filter()"
363 <h:form id="form-list-branch-opening-time">
364 <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_OPENING_TIMES_LEGEND}">
365 <core:outputOpeningTimesDataTable
366 id="branchOpeningTimeList"
367 value="#{adminBranchOfficeController.branchOpeningTimes}"
369 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
370 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
371 widgetVar="branchOpeningTimeList"
372 headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
382 <f:facet name="header">
383 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME_TITLE}" />
386 <h:panelGroup styleClass="para" layout="block">
387 <h:outputText value="#{msg.ADMIN_ADD_OPENING_TIME_MINIMUM_DATA}" />
390 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_opening_time.tpl" />
392 <f:facet name="footer">
393 <p:panelGrid columns="2" layout="grid">
396 value="#{msg.BUTTON_RESET_FORM}"
401 value="#{msg.BUTTON_ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME}"
402 action="#{adminBranchOfficeController.addOpeningTime()}"
403 update=":master:form-list-branch-opening-time:branchOpeningTimeList"