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"
60 value="#{msg.SEARCH_ALL_FIELDS}"
66 onkeyup="PF('branchOfficeList').filter()"
67 placeholder="#{msg.ENTER_KEYWORD}"
72 <p:spacer height="4" />
77 value="#{msg.SELECT_SHOWN_COLUMNS}"
78 styleClass="column-selector"
81 <p:columnToggler datasource="branchOfficeList" trigger="toggler" />
88 update="form-list-branch-offices:branch-office-details"
89 oncomplete="PF('branchOfficeDialog').show()"
93 headerText="#{msg.ID_HEADER}"
94 sortBy="#{branchOffice.branchId}"
98 outcome="admin_show_branch_office"
99 value="#{branchOffice.branchId}"
100 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_TITLE}"
102 <f:param name="branchId" value="#{branchOffice.branchId}" />
107 headerText="#{msg.BRANCH_OFFICE_NUMBER_HEADER}"
108 sortBy="#{branchOffice.branchNumber}"
109 filterBy="#{branchOffice.branchNumber}"
110 filterMatchMode="contains"
112 <h:outputText value="#{branchOffice.branchNumber}" rendered="#{not empty branchOffice.branchNumber}" />
113 <h:outputText value="-" rendered="#{empty branchOffice.branchNumber}" />
117 headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_HEADER}"
118 sortBy="#{branchOffice.branchCompany}"
119 filterBy="#{branchOffice.branchCompany}"
122 <f:facet name="filter">
123 <p:selectCheckboxMenu
125 filterMatchMode="contains"
126 label="#{msg.LABEL_COMPANIES}"
127 onchange="PF('branchOfficeList').filter()"
129 title="#{msg.FILTER_BY_MULTIPLE_COMPANIES_TITLE}"
131 <f:converter converterId="BasicCompanyDataConverter" />
134 value="#{basicDataListController.allBasicData}"
136 itemValue="#{basicData}"
137 itemLabel="#{beanHelper.renderBasicData(basicData, true)}"
139 </p:selectCheckboxMenu>
143 outcome="admin_show_basic_data"
144 value="#{beanHelper.renderBasicData(branchOffice.branchCompany, true)}"
145 title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
147 <f:param name="basicDataId" value="#{branchOffice.branchCompany.basicDataId}" />
152 headerText="#{msg.ADMIN_USER_HEADER}"
153 sortBy="#{branchOffice.branchUserOwner}"
154 filterBy="#{branchOffice.branchUserOwner}"
157 <f:facet name="filter">
158 <p:selectCheckboxMenu
160 filterMatchMode="contains"
161 label="#{msg.LABEL_USERS}"
162 onchange="PF('branchOfficeList').filter()"
164 title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}"
166 <f:converter converterId="UserConverter" />
169 value="#{userController.allUsers()}"
172 itemLabel="#{beanHelper.renderUser(user)}"
174 </p:selectCheckboxMenu>
178 outcome="admin_show_user"
179 value="#{beanHelper.renderUser(branchOffice.branchUserOwner)}"
180 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}"
181 rendered="#{not empty branchOffice.branchUserOwner}"
183 <f:param name="userId" value="#{branchOffice.branchUserOwner.userId}" />
187 outcome="admin_assign_branch_office_owner"
188 value="#{msg.ADMIN_LINK_ASSIGN}"
189 title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_OWNER_USER_TITLE}"
190 rendered="#{empty branchOffice.branchUserOwner}"
192 <f:param name="branchId" value="#{branchOffice.branchId}" />
197 headerText="#{msg.DATA_EMAIL_ADDRESS}"
198 sortBy="#{branchOffice.branchEmailAddress}"
199 filterBy="#{branchOffice.branchEmailAddress}"
200 filterMatchMode="contains"
203 href="mailto:#{branchOffice.branchEmailAddress}"
204 value="#{branchOffice.branchEmailAddress}"
205 rendered="#{not empty branchOffice.branchEmailAddress}"
208 <h:outputText value="#{msg.NO_EMAIL_ADDRESS_ENTERED}" rendered="#{empty branchOffice.branchEmailAddress}" />
212 headerText="#{msg.DATA_ADDRESS}"
213 sortBy="#{branchOffice.branchCity}"
214 filterBy="#{branchOffice.branchCity}"
215 filterMatchMode="contains"
217 <h:outputText value="#{beanHelper.renderBranchOffice(branchOffice)}" title="#{beanHelper.renderBranchOffice(branchOffice)}" />
221 headerText="#{msg.ADMIN_COMPANY_CONTACT_PERSON_HEADER}"
222 sortBy="#{branchOffice.branchContactEmployee}"
223 filterBy="#{branchOffice.branchContactEmployee}"
226 <f:facet name="filter">
227 <p:selectCheckboxMenu
229 filterMatchMode="contains"
230 label="#{msg.LABEL_EMPLOYEES}"
231 onchange="PF('branchOfficeList').filter()"
233 title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}"
235 <f:converter converterId="EmployeeConverter" />
238 value="#{employeeController.allEmployees()}"
240 itemValue="#{employee}"
241 itemLabel="#{beanHelper.renderEmployee(employee)}"
243 </p:selectCheckboxMenu>
247 outcome="admin_show_employee"
248 value="#{beanHelper.renderEmployee(branchOffice.branchContactEmployee)}"
249 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}"
250 rendered="#{not empty branchOffice.branchContactEmployee}"
252 <f:param name="employeeId" value="#{branchOffice.branchContactEmployee.employeeId}" />
256 outcome="admin_assign_branch_office_employee"
257 value="#{msg.ADMIN_LINK_ASSIGN}"
258 title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_CONTACT_PERSON_TITLE}"
259 rendered="#{empty branchOffice.branchContactEmployee}"
261 <f:param name="branchId" value="#{branchOffice.branchId}" />
266 headerText="#{msg.ENTRY_CREATED_HEADER}"
267 sortBy="#{branchOffice.branchCreated}"
270 <h:outputText id="branchCreated" value="#{branchOffice.branchCreated}">
271 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
276 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
280 <links:outputBranchOfficeAdminDropdownMenu branchOffice="#{branchOffice}" />
288 header="#{msg.ADMIN_SINGLE_BRANCH_OFFICE_DETAILS_HEADER}"
291 widgetVar="branchOfficeDialog"
296 <p:outputPanel id="branch-office-details">
298 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_DATA_TAB_TITLE}">
299 <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
300 <f:facet name="header">
301 <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_BASIC_DETAILS_HEADER}">
302 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
306 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.BRANCH_OFFICE_ID_NUMBER_TITLE}" />
307 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
309 <p:outputLabel value="#{msg.BRANCH_OFFICE_NUMBER_HEADER}" title="#{msg.BRANCH_OFFICE_NUMBER_TITLE}" />
310 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchNumber}" />
312 <p:outputLabel value="#{msg.ASSIGNED_BASIC_DATA_HEADER}" title="#{msg.ASSIGNED_BASIC_DATA_TO_BRANCH_OFFICE_TITLE}" />
314 outcome="admin_show_basic_data"
316 value="#{beanHelper.renderBasicData(branchOfficeListController.selectedBranchOffice.branchCompany, false)}"
317 title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
319 <f:param name="basicDataId" value="#{branchOfficeListController.selectedBranchOffice.branchCompany.basicDataId}" />
322 <p:outputLabel value="#{msg.ASSIGNED_CONTACT_PERSON_HEADER}" title="#{msg.ASSIGNED_CONTACT_PERSON_TO_BRANCH_OFFICE_TITLE}" />
324 outcome="admin_show_employee"
326 value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchContactEmployee)}"
327 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}"
328 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}"
330 <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
332 <h:outputText value="#{msg.NO_CONTACT_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}" />
334 <p:outputLabel value="#{msg.ASSIGNED_OWNER_EMPLOYEE_HEADER}" title="#{msg.ASSIGNED_OWNER_EMPLOYEE_TO_BRANCH_OFFICE_TITLE}" />
336 outcome="admin_show_employee"
338 value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchOwnerEmployee)}"
339 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_EMPLOYEE_TITLE}"
340 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}"
342 <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
344 <h:outputText value="#{msg.NO_OWNER_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}" />
346 <p:outputLabel value="#{msg.ASSIGNED_USER_OWNER_HEADER}" title="#{msg.ASSIGNED_USER_OWNER_TO_BRANCH_OFFICE_TITLE}" />
348 outcome="admin_show_user"
350 value="#{beanHelper.renderUser(branchOfficeListController.selectedBranchOffice.branchUserOwner)}"
351 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}"
352 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchUserOwner}"
354 <f:param name="userId" value="#{branchOfficeListController.selectedBranchOffice.branchUserOwner.userId}" />
356 <h:outputText value="#{msg.NO_USER_ASSIGNED_AS_OWNER_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchUserOwner}" />
358 <p:outputLabel value="#{msg.EMAIL_ADDRESS_HEADER}" title="#{msg.EMAIL_ADDRESS_OF_BRANCH_OFFICE_TITLE}" />
359 <h:outputLink value="mailto:#{branchOfficeListController.selectedBranchOffice.branchEmailAddress}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
360 <h:outputText value="#{msg.BRANCH_OFFICE_HAS_NO_EMAIL_ADDRESS}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
362 <p:outputLabel value="#{msg.LANDLINE_NUMBER_HEADER}" title="#{msg.ASSIGNED_LANDLINE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
364 outcome="admin_show_landline"
365 value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchLandLineNumber)}"
367 title="#{msg.ADMIN_LINK_SHOW_LAND_LINE_NUMBER_TITLE}"
368 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}"
370 <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchLandLineNumber.phoneId}" />
372 <h:outputText value="#{msg.NO_LANDLINE_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}" />
374 <p:outputLabel value="#{msg.FAX_NUMBER_HEADER}" title="#{msg.ASSIGNED_FAX_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
376 outcome="admin_show_fax"
377 value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchFaxNumber)}"
379 title="#{msg.ADMIN_LINK_SHOW_FAX_NUMBER_TITLE}"
380 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}"
382 <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchFaxNumber.phoneId}" />
384 <h:outputText value="#{msg.NO_FAX_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}" />
388 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_TAB_TITLE}">
389 <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
390 <f:facet name="header">
391 <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_DETAILS_HEADER}">
392 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
396 <p:outputLabel value="#{msg.STREET_NAME_HEADER}" title="#{msg.STREET_NAME_OF_BRANCH_OFFICE_TITLE}" />
397 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStreet}" />
399 <p:outputLabel value="#{msg.HOUSE_NUMBER_HEADER}" title="#{msg.HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
400 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumber}" />
402 <p:outputLabel value="#{msg.LAST_HOUSE_NUMBER_HEADER}" title="#{msg.LAST_HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
403 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchLastHouseNumber}" />
405 <p:outputLabel value="#{msg.HOUSE_NUMBER_EXTENSION_HEADER}" title="#{msg.HOUSE_NUMBER_EXTENSION_OF_BRANCH_OFFICE_TITLE}" />
406 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumberExtension}" />
408 <p:outputLabel value="#{msg.STORE_HEADER}" title="#{msg.STORE_OF_BRANCH_OFFICE_TITLE}" />
409 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStore}" />
411 <p:outputLabel value="#{msg.SUITE_NUMBER_HEADER}" title="#{msg.SUITE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
412 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchSuiteNumber}" />
414 <p:outputLabel value="#{msg.DATA_ZIP_CODE}" title="#{msg.ZIP_CODE_OF_BRANCH_OFFICE_TITLE}" />
415 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchZipCode}" />
417 <p:outputLabel value="#{msg.CITY_HEADER}" title="#{msg.CITY_OF_BRANCH_OFFICE_TITLE}" />
418 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchCity}" />
420 <p:outputLabel value="#{msg.COUNTRY_HEADER}" title="#{msg.COUNTRY_OF_BRANCH_OFFICE_TITLE}" />
421 <h:outputText value="#{beanHelper.renderCountry(branchOfficeListController.selectedBranchOffice.branchCountry)}" />
425 <p:tab title="#{msg.ADMIN_OPENING_TIMES_TAB_TITLE}">
426 <core:outputOpeningTimesDataTable
427 id="branchOpeningTimeDetailList"
428 value="#{branchOfficeListController.selectedBranchOffice.branchOpeningTimes}"
430 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
431 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
432 widgetVar="branchOpeningTimeDetailList"
433 headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
446 <f:facet name="header">
447 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_TITLE}" />
450 <h:panelGroup styleClass="para" layout="block">
451 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_MINIMUM_DATA}" />
454 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl" />
456 <f:facet name="footer">
457 <p:panelGrid columns="2" layout="grid">
460 value="#{msg.BUTTON_RESET_FORM}"
465 value="#{msg.BUTTON_ADMIN_ADD_BASIC_DATA}"
466 action="#{adminBranchOfficeController.addBranchOffice()}"
467 update="form-list-branch-offices:branchOfficeList"
468 oncomplete="PF('branchOfficeList').filter()"
475 <h:form id="form-list-branch-opening-time">
476 <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_OPENING_TIMES_LEGEND}">
477 <core:outputOpeningTimesDataTable
478 id="branchOpeningTimeList"
479 value="#{adminBranchOfficeController.branchOpeningTimes}"
481 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
482 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
483 widgetVar="branchOpeningTimeList"
484 headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
494 <f:facet name="header">
495 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME_TITLE}" />
498 <h:panelGroup styleClass="para" layout="block">
499 <h:outputText value="#{msg.ADMIN_ADD_OPENING_TIME_MINIMUM_DATA}" />
502 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_opening_time.tpl" />
504 <f:facet name="footer">
505 <p:panelGrid columns="2" layout="grid">
508 value="#{msg.BUTTON_RESET_FORM}"
513 value="#{msg.BUTTON_ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME}"
514 action="#{adminBranchOfficeController.addOpeningTime()}"
515 update="form-list-branch-opening-time:branchOpeningTimeList"