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()"
84 headerText="#{msg.ID_HEADER}"
85 sortBy="#{branchOffice.branchId}"
89 outcome="admin_show_branch_office"
90 value="#{branchOffice.branchId}"
91 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_TITLE}"
93 <f:param name="branchId" value="#{branchOffice.branchId}" />
98 headerText="#{msg.BRANCH_OFFICE_NUMBER_HEADER}"
99 sortBy="#{branchOffice.branchNumber}"
100 filterBy="#{branchOffice.branchNumber}"
101 filterMatchMode="contains"
103 <h:outputText value="#{branchOffice.branchNumber}" rendered="#{not empty branchOffice.branchNumber}" />
104 <h:outputText value="-" rendered="#{empty branchOffice.branchNumber}" />
108 headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_HEADER}"
109 sortBy="#{branchOffice.branchCompany}"
110 filterBy="#{branchOffice.branchCompany}"
113 <f:facet name="filter">
114 <p:selectCheckboxMenu
116 filterMatchMode="contains"
117 label="#{msg.LABEL_COMPANIES}"
118 onchange="PF('branchOfficeList').filter()"
120 title="#{msg.FILTER_BY_MULTIPLE_COMPANIES_TITLE}"
122 <f:converter converterId="BasicCompanyDataConverter" />
125 value="#{basicDataListController.allBasicData}"
127 itemValue="#{basicData}"
128 itemLabel="#{beanHelper.renderBasicData(basicData, true)}"
130 </p:selectCheckboxMenu>
134 outcome="admin_show_basic_data"
135 value="#{beanHelper.renderBasicData(branchOffice.branchCompany, true)}"
136 title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
138 <f:param name="basicDataId" value="#{branchOffice.branchCompany.basicDataId}" />
143 headerText="#{msg.ADMIN_USER_HEADER}"
144 sortBy="#{branchOffice.branchUserOwner}"
145 filterBy="#{branchOffice.branchUserOwner}"
148 <f:facet name="filter">
149 <p:selectCheckboxMenu
151 filterMatchMode="contains"
152 label="#{msg.LABEL_USERS}"
153 onchange="PF('branchOfficeList').filter()"
155 title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}"
157 <f:converter converterId="UserConverter" />
160 value="#{userController.allUsers()}"
163 itemLabel="#{beanHelper.renderUser(user)}"
165 </p:selectCheckboxMenu>
169 outcome="admin_show_user"
170 value="#{beanHelper.renderUser(branchOffice.branchUserOwner)}"
171 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}"
172 rendered="#{not empty branchOffice.branchUserOwner}"
174 <f:param name="userId" value="#{branchOffice.branchUserOwner.userId}" />
178 outcome="admin_assign_branch_office_owner"
179 value="#{msg.ADMIN_LINK_ASSIGN}"
180 title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_OWNER_USER_TITLE}"
181 rendered="#{empty branchOffice.branchUserOwner}"
183 <f:param name="branchId" value="#{branchOffice.branchId}" />
188 headerText="#{msg.DATA_EMAIL_ADDRESS}"
189 sortBy="#{branchOffice.branchEmailAddress}"
190 filterBy="#{branchOffice.branchEmailAddress}"
191 filterMatchMode="contains"
194 href="mailto:#{branchOffice.branchEmailAddress}"
195 value="#{branchOffice.branchEmailAddress}"
196 rendered="#{not empty branchOffice.branchEmailAddress}"
199 <h:outputText value="#{msg.NO_EMAIL_ADDRESS_ENTERED}" rendered="#{empty branchOffice.branchEmailAddress}" />
203 headerText="#{msg.DATA_ADDRESS}"
204 sortBy="#{branchOffice.branchCity}"
205 filterBy="#{branchOffice.branchCity}"
206 filterMatchMode="contains"
208 <h:outputText value="#{beanHelper.renderBranchOffice(branchOffice)}" title="#{beanHelper.renderBranchOffice(branchOffice)}" />
212 headerText="#{msg.ADMIN_COMPANY_CONTACT_PERSON_HEADER}"
213 sortBy="#{branchOffice.branchContactEmployee}"
214 filterBy="#{branchOffice.branchContactEmployee}"
217 <f:facet name="filter">
218 <p:selectCheckboxMenu
220 filterMatchMode="contains"
221 label="#{msg.LABEL_EMPLOYEES}"
222 onchange="PF('branchOfficeList').filter()"
224 title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}"
226 <f:converter converterId="EmployeeConverter" />
229 value="#{employeeController.allEmployees()}"
231 itemValue="#{employee}"
232 itemLabel="#{beanHelper.renderEmployee(employee)}"
234 </p:selectCheckboxMenu>
238 outcome="admin_show_employee"
239 value="#{beanHelper.renderEmployee(branchOffice.branchContactEmployee)}"
240 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}"
241 rendered="#{not empty branchOffice.branchContactEmployee}"
243 <f:param name="employeeId" value="#{branchOffice.branchContactEmployee.employeeId}" />
247 outcome="admin_assign_branch_office_employee"
248 value="#{msg.ADMIN_LINK_ASSIGN}"
249 title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_CONTACT_PERSON_TITLE}"
250 rendered="#{empty branchOffice.branchContactEmployee}"
252 <f:param name="branchId" value="#{branchOffice.branchId}" />
257 headerText="#{msg.ENTRY_CREATED_HEADER}"
258 sortBy="#{branchOffice.branchCreated}"
261 <h:outputText id="branchCreated" value="#{branchOffice.branchCreated}">
262 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
267 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
271 <links:outputBranchOfficeAdminDropdownMenu branchOffice="#{branchOffice}" />
279 header="#{msg.ADMIN_SINGLE_BRANCH_OFFICE_DETAILS_HEADER}"
282 widgetVar="branchOfficeDialog"
286 <p:outputPanel id="branchOffice-details">
288 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_DATA_TAB_TITLE}">
289 <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
290 <f:facet name="header">
291 <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_BASIC_DETAILS_HEADER}">
292 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
296 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.BRANCH_OFFICE_ID_NUMBER_TITLE}" />
297 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
299 <p:outputLabel value="#{msg.BRANCH_OFFICE_NUMBER_HEADER}" title="#{msg.BRANCH_OFFICE_NUMBER_TITLE}" />
300 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchNumber}" />
302 <p:outputLabel value="#{msg.ASSIGNED_BASIC_DATA_HEADER}" title="#{msg.ASSIGNED_BASIC_DATA_TO_BRANCH_OFFICE_TITLE}" />
304 outcome="admin_show_basic_data"
306 value="#{beanHelper.renderBasicData(branchOfficeListController.selectedBranchOffice.branchCompany, false)}"
307 title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
309 <f:param name="basicDataId" value="#{branchOfficeListController.selectedBranchOffice.branchCompany.basicDataId}" />
312 <p:outputLabel value="#{msg.ASSIGNED_CONTACT_PERSON_HEADER}" title="#{msg.ASSIGNED_CONTACT_PERSON_TO_BRANCH_OFFICE_TITLE}" />
314 outcome="admin_show_employee"
316 value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchContactEmployee)}"
317 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}"
318 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}"
320 <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
322 <h:outputText value="#{msg.NO_CONTACT_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}" />
324 <p:outputLabel value="#{msg.ASSIGNED_OWNER_EMPLOYEE_HEADER}" title="#{msg.ASSIGNED_OWNER_EMPLOYEE_TO_BRANCH_OFFICE_TITLE}" />
326 outcome="admin_show_employee"
328 value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchOwnerEmployee)}"
329 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_EMPLOYEE_TITLE}"
330 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}"
332 <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
334 <h:outputText value="#{msg.NO_OWNER_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}" />
336 <p:outputLabel value="#{msg.ASSIGNED_USER_OWNER_HEADER}" title="#{msg.ASSIGNED_USER_OWNER_TO_BRANCH_OFFICE_TITLE}" />
338 outcome="admin_show_user"
340 value="#{beanHelper.renderUser(branchOfficeListController.selectedBranchOffice.branchUserOwner)}"
341 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}"
342 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchUserOwner}"
344 <f:param name="userId" value="#{branchOfficeListController.selectedBranchOffice.branchUserOwner.userId}" />
346 <h:outputText value="#{msg.NO_USER_ASSIGNED_AS_OWNER_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchUserOwner}" />
348 <p:outputLabel value="#{msg.EMAIL_ADDRESS_HEADER}" title="#{msg.EMAIL_ADDRESS_OF_BRANCH_OFFICE_TITLE}" />
349 <h:outputLink value="mailto:#{branchOfficeListController.selectedBranchOffice.branchEmailAddress}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
350 <h:outputText value="#{msg.BRANCH_OFFICE_HAS_NO_EMAIL_ADDRESS}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
352 <p:outputLabel value="#{msg.LANDLINE_NUMBER_HEADER}" title="#{msg.ASSIGNED_LANDLINE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
354 outcome="admin_show_landline"
355 value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchLandLineNumber)}"
357 title="#{msg.ADMIN_LINK_SHOW_LAND_LINE_NUMBER_TITLE}"
358 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}"
360 <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchLandLineNumber.phoneId}" />
362 <h:outputText value="#{msg.NO_LANDLINE_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}" />
364 <p:outputLabel value="#{msg.FAX_NUMBER_HEADER}" title="#{msg.ASSIGNED_FAX_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
366 outcome="admin_show_fax"
367 value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchFaxNumber)}"
369 title="#{msg.ADMIN_LINK_SHOW_FAX_NUMBER_TITLE}"
370 rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}"
372 <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchFaxNumber.phoneId}" />
374 <h:outputText value="#{msg.NO_FAX_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}" />
378 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_TAB_TITLE}">
379 <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
380 <f:facet name="header">
381 <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_DETAILS_HEADER}">
382 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
386 <p:outputLabel value="#{msg.STREET_NAME_HEADER}" title="#{msg.STREET_NAME_OF_BRANCH_OFFICE_TITLE}" />
387 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStreet}" />
389 <p:outputLabel value="#{msg.HOUSE_NUMBER_HEADER}" title="#{msg.HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
390 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumber}" />
392 <p:outputLabel value="#{msg.LAST_HOUSE_NUMBER_HEADER}" title="#{msg.LAST_HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
393 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchLastHouseNumber}" />
395 <p:outputLabel value="#{msg.HOUSE_NUMBER_EXTENSION_HEADER}" title="#{msg.HOUSE_NUMBER_EXTENSION_OF_BRANCH_OFFICE_TITLE}" />
396 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumberExtension}" />
398 <p:outputLabel value="#{msg.STORE_HEADER}" title="#{msg.STORE_OF_BRANCH_OFFICE_TITLE}" />
399 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStore}" />
401 <p:outputLabel value="#{msg.SUITE_NUMBER_HEADER}" title="#{msg.SUITE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
402 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchSuiteNumber}" />
404 <p:outputLabel value="#{msg.ZIP_CODE_HEADER}" title="#{msg.ZIP_CODE_OF_BRANCH_OFFICE_TITLE}" />
405 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchZipCode}" />
407 <p:outputLabel value="#{msg.CITY_HEADER}" title="#{msg.CITY_OF_BRANCH_OFFICE_TITLE}" />
408 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchCity}" />
410 <p:outputLabel value="#{msg.COUNTRY_HEADER}" title="#{msg.COUNTRY_OF_BRANCH_OFFICE_TITLE}" />
411 <h:outputText value="#{beanHelper.renderCountry(branchOfficeListController.selectedBranchOffice.branchCountry)}" />
415 <p:tab title="#{msg.ADMIN_OPENING_TIMES_TAB_TITLE}">
416 <core:outputOpeningTimesDataTable
417 id="branchOpeningTimeDetailList"
418 value="#{branchOfficeListController.selectedBranchOffice.branchOpeningTimes}"
420 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
421 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
422 widgetVar="branchOpeningTimeDetailList"
423 headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
436 <f:facet name="header">
437 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_TITLE}" />
440 <h:panelGroup styleClass="para" layout="block">
441 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_MINIMUM_DATA}" />
444 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl" />
446 <f:facet name="footer">
447 <p:panelGrid columns="2" layout="grid">
450 value="#{msg.BUTTON_RESET_FORM}"
455 value="#{msg.BUTTON_ADMIN_ADD_BASIC_DATA}"
456 action="#{adminBranchOfficeController.addBranchOffice()}"
457 update=":master:form-list-branch-offices:branchOfficeList"
458 oncomplete="PF('branchOfficeList').filter()"
465 <h:form id="form-list-branch-opening-time">
466 <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_OPENING_TIMES_LEGEND}">
467 <core:outputOpeningTimesDataTable
468 id="branchOpeningTimeList"
469 value="#{adminBranchOfficeController.branchOpeningTimes}"
471 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
472 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
473 widgetVar="branchOpeningTimeList"
474 headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
484 <f:facet name="header">
485 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME_TITLE}" />
488 <h:panelGroup styleClass="para" layout="block">
489 <h:outputText value="#{msg.ADMIN_ADD_OPENING_TIME_MINIMUM_DATA}" />
492 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_opening_time.tpl" />
494 <f:facet name="footer">
495 <p:panelGrid columns="2" layout="grid">
498 value="#{msg.BUTTON_RESET_FORM}"
503 value="#{msg.BUTTON_ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME}"
504 action="#{adminBranchOfficeController.addOpeningTime()}"
505 update=":master:form-list-branch-opening-time:branchOpeningTimeList"