]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/branch_office/admin_branch_office_list.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / branch_office / admin_branch_office_list.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
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"
11         >
12
13         <ui:define name="document_admin_title">
14                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_BRANCH_OFFICES}" />
15         </ui:define>
16
17         <ui:define name="content_header">
18                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_BRANCH_OFFICES}" />
19         </ui:define>
20
21         <ui:define name="content">
22                 <h:form id="form-list-branch-offices">
23                         <p:dataTable
24                                 id="branchOfficeList"
25                                 var="branchOffice"
26                                 value="#{branchOfficeListController.allBranchOffices()}"
27                                 paginator="true"
28                                 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
29                                 filteredValue="#{branchOfficeListController.filteredBranchOffices}"
30                                 rows="10"
31                                 rowKey="#{branchOffice.branchId}"
32                                 reflow="true"
33                                 resizableColumns="true"
34                                 rowsPerPageTemplate="5,10,20,50,100"
35                                 sortMode="multiple"
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}"
41                                 skipChildren="true"
42                                 >
43
44                                 <f:facet name="header">
45                                         <p:panelGrid
46                                                 columns="3"
47                                                 layout="grid"
48                                                 columnClasses="ui-grid-col-4,ui-grid-col-6,ui-grid-col-2"
49                                                 >
50                                                 <p:spacer />
51
52                                                 <p:panelGrid
53                                                         columns="2"
54                                                         columnClasses="ui-grid-4,ui-grid-8"
55                                                         layout="grid"
56                                                         styleClass="ui-noborder"
57                                                         >
58                                                         <p:outputLabel
59                                                                 for="globalFilter"
60                                                                 value="#{msg.SEARCH_ALL_FIELDS}"
61                                                                 style="float: right"
62                                                                 />
63
64                                                         <p:inputText
65                                                                 id="globalFilter"
66                                                                 onkeyup="PF('branchOfficeList').filter()"
67                                                                 placeholder="#{msg.ENTER_KEYWORD}"
68                                                                 />
69                                                 </p:panelGrid>
70
71                                                 <p:outputPanel>
72                                                         <p:spacer height="4" />
73
74                                                         <p:commandButton
75                                                                 id="toggler"
76                                                                 type="button"
77                                                                 value="#{msg.SELECT_SHOWN_COLUMNS}"
78                                                                 styleClass="column-selector"
79                                                                 />
80
81                                                         <p:columnToggler datasource="branchOfficeList" trigger="toggler" />
82                                                 </p:outputPanel>
83                                         </p:panelGrid>
84                                 </f:facet>
85
86                                 <p:ajax
87                                         event="rowSelect"
88                                         update="form-list-branch-offices:branch-office-details"
89                                         oncomplete="PF('branchOfficeDialog').show()"
90                                         />
91
92                                 <p:column
93                                         headerText="#{msg.ID_HEADER}"
94                                         sortBy="#{branchOffice.branchId}"
95                                         filterable="false"
96                                         >
97                                         <p:link
98                                                 outcome="admin_show_branch_office"
99                                                 value="#{branchOffice.branchId}"
100                                                 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_TITLE}"
101                                                 >
102                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
103                                         </p:link>
104                                 </p:column>
105
106                                 <p:column
107                                         headerText="#{msg.BRANCH_OFFICE_NUMBER_HEADER}"
108                                         sortBy="#{branchOffice.branchNumber}"
109                                         filterBy="#{branchOffice.branchNumber}"
110                                         filterMatchMode="contains"
111                                         >
112                                         <h:outputText value="#{branchOffice.branchNumber}" rendered="#{not empty branchOffice.branchNumber}" />
113                                         <h:outputText value="-" rendered="#{empty branchOffice.branchNumber}" />
114                                 </p:column>
115
116                                 <p:column
117                                         headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_HEADER}"
118                                         sortBy="#{branchOffice.branchCompany}"
119                                         filterBy="#{branchOffice.branchCompany}"
120                                         filterMatchMode="in"
121                                         >
122                                         <f:facet name="filter">
123                                                 <p:selectCheckboxMenu
124                                                         filter="true"
125                                                         filterMatchMode="contains"
126                                                         label="#{msg.LABEL_COMPANIES}"
127                                                         onchange="PF('branchOfficeList').filter()"
128                                                         updateLabel="true"
129                                                         title="#{msg.FILTER_BY_MULTIPLE_COMPANIES_TITLE}"
130                                                         >
131                                                         <f:converter converterId="BasicCompanyDataConverter" />
132
133                                                         <f:selectItems
134                                                                 value="#{basicDataListController.allBasicData}"
135                                                                 var="basicData"
136                                                                 itemValue="#{basicData}"
137                                                                 itemLabel="#{beanHelper.renderBasicData(basicData, true)}"
138                                                                 />
139                                                 </p:selectCheckboxMenu>
140                                         </f:facet>
141
142                                         <p:link
143                                                 outcome="admin_show_basic_data"
144                                                 value="#{beanHelper.renderBasicData(branchOffice.branchCompany, true)}"
145                                                 title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
146                                                 >
147                                                 <f:param name="basicDataId" value="#{branchOffice.branchCompany.basicDataId}" />
148                                         </p:link>
149                                 </p:column>
150
151                                 <p:column
152                                         headerText="#{msg.ADMIN_USER_HEADER}"
153                                         sortBy="#{branchOffice.branchUserOwner}"
154                                         filterBy="#{branchOffice.branchUserOwner}"
155                                         filterMatchMode="in"
156                                         >
157                                         <f:facet name="filter">
158                                                 <p:selectCheckboxMenu
159                                                         filter="true"
160                                                         filterMatchMode="contains"
161                                                         label="#{msg.LABEL_USERS}"
162                                                         onchange="PF('branchOfficeList').filter()"
163                                                         updateLabel="true"
164                                                         title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}"
165                                                         >
166                                                         <f:converter converterId="UserConverter" />
167
168                                                         <f:selectItems
169                                                                 value="#{userController.allUsers()}"
170                                                                 var="user"
171                                                                 itemValue="#{user}"
172                                                                 itemLabel="#{beanHelper.renderUser(user)}"
173                                                                 />
174                                                 </p:selectCheckboxMenu>
175                                         </f:facet>
176
177                                         <p:link
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}"
182                                                 >
183                                                 <f:param name="userId" value="#{branchOffice.branchUserOwner.userId}" />
184                                         </p:link>
185
186                                         <p:link
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}"
191                                                 >
192                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
193                                         </p:link>
194                                 </p:column>
195
196                                 <p:column
197                                         headerText="#{msg.DATA_EMAIL_ADDRESS}"
198                                         sortBy="#{branchOffice.branchEmailAddress}"
199                                         filterBy="#{branchOffice.branchEmailAddress}"
200                                         filterMatchMode="contains"
201                                         >
202                                         <p:link
203                                                 href="mailto:#{branchOffice.branchEmailAddress}"
204                                                 value="#{branchOffice.branchEmailAddress}"
205                                                 rendered="#{not empty branchOffice.branchEmailAddress}"
206                                                 />
207
208                                         <h:outputText value="#{msg.NO_EMAIL_ADDRESS_ENTERED}" rendered="#{empty branchOffice.branchEmailAddress}" />
209                                 </p:column>
210
211                                 <p:column
212                                         headerText="#{msg.DATA_ADDRESS}"
213                                         sortBy="#{branchOffice.branchCity}"
214                                         filterBy="#{branchOffice.branchCity}"
215                                         filterMatchMode="contains"
216                                         >
217                                         <h:outputText value="#{beanHelper.renderBranchOffice(branchOffice)}" title="#{beanHelper.renderBranchOffice(branchOffice)}" />
218                                 </p:column>
219
220                                 <p:column
221                                         headerText="#{msg.ADMIN_COMPANY_CONTACT_PERSON_HEADER}"
222                                         sortBy="#{branchOffice.branchContactEmployee}"
223                                         filterBy="#{branchOffice.branchContactEmployee}"
224                                         filterMatchMode="in"
225                                         >
226                                         <f:facet name="filter">
227                                                 <p:selectCheckboxMenu
228                                                         filter="true"
229                                                         filterMatchMode="contains"
230                                                         label="#{msg.LABEL_EMPLOYEES}"
231                                                         onchange="PF('branchOfficeList').filter()"
232                                                         updateLabel="true"
233                                                         title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}"
234                                                         >
235                                                         <f:converter converterId="EmployeeConverter" />
236
237                                                         <f:selectItems
238                                                                 value="#{employeeController.allEmployees()}"
239                                                                 var="employee"
240                                                                 itemValue="#{employee}"
241                                                                 itemLabel="#{beanHelper.renderEmployee(employee)}"
242                                                                 />
243                                                 </p:selectCheckboxMenu>
244                                         </f:facet>
245
246                                         <p:link
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}"
251                                                 >
252                                                 <f:param name="employeeId" value="#{branchOffice.branchContactEmployee.employeeId}" />
253                                         </p:link>
254
255                                         <p:link
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}"
260                                                 >
261                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
262                                         </p:link>
263                                 </p:column>
264
265                                 <p:column
266                                         headerText="#{msg.ENTRY_CREATED_HEADER}"
267                                         sortBy="#{branchOffice.branchCreated}"
268                                         filterable="false"
269                                         >
270                                         <h:outputText id="branchCreated" value="#{branchOffice.branchCreated}">
271                                                 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
272                                         </h:outputText>
273                                 </p:column>
274
275                                 <p:column
276                                         headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
277                                         sortable="false"
278                                         filterable="false"
279                                         >
280                                         <links:outputBranchOfficeAdminDropdownMenu branchOffice="#{branchOffice}" />
281                                 </p:column>
282                         </p:dataTable>
283
284                         <p:dialog
285                                 dynamic="true"
286                                 modal="true"
287                                 resizable="false"
288                                 header="#{msg.ADMIN_SINGLE_BRANCH_OFFICE_DETAILS_HEADER}"
289                                 hideEffect="fade"
290                                 showEffect="fade"
291                                 widgetVar="branchOfficeDialog"
292                                 position="top"
293                                 responsive="true"
294                                 closeOnEscape="true"
295                                 >
296                                 <p:outputPanel id="branch-office-details">
297                                         <p:tabView>
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}" />
303                                                                         </h:outputFormat>
304                                                                 </f:facet>
305
306                                                                 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.BRANCH_OFFICE_ID_NUMBER_TITLE}" />
307                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
308
309                                                                 <p:outputLabel value="#{msg.BRANCH_OFFICE_NUMBER_HEADER}" title="#{msg.BRANCH_OFFICE_NUMBER_TITLE}" />
310                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchNumber}" />
311
312                                                                 <p:outputLabel value="#{msg.ASSIGNED_BASIC_DATA_HEADER}" title="#{msg.ASSIGNED_BASIC_DATA_TO_BRANCH_OFFICE_TITLE}" />
313                                                                 <p:link
314                                                                         outcome="admin_show_basic_data"
315                                                                         target="_blank"
316                                                                         value="#{beanHelper.renderBasicData(branchOfficeListController.selectedBranchOffice.branchCompany, false)}"
317                                                                         title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
318                                                                         >
319                                                                         <f:param name="basicDataId" value="#{branchOfficeListController.selectedBranchOffice.branchCompany.basicDataId}" />
320                                                                 </p:link>
321
322                                                                 <p:outputLabel value="#{msg.ASSIGNED_CONTACT_PERSON_HEADER}" title="#{msg.ASSIGNED_CONTACT_PERSON_TO_BRANCH_OFFICE_TITLE}" />
323                                                                 <p:link
324                                                                         outcome="admin_show_employee"
325                                                                         target="_blank"
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}"
329                                                                         >
330                                                                         <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
331                                                                 </p:link>
332                                                                 <h:outputText value="#{msg.NO_CONTACT_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}" />
333
334                                                                 <p:outputLabel value="#{msg.ASSIGNED_OWNER_EMPLOYEE_HEADER}" title="#{msg.ASSIGNED_OWNER_EMPLOYEE_TO_BRANCH_OFFICE_TITLE}" />
335                                                                 <p:link
336                                                                         outcome="admin_show_employee"
337                                                                         target="_blank"
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}"
341                                                                         >
342                                                                         <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
343                                                                 </p:link>
344                                                                 <h:outputText value="#{msg.NO_OWNER_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}" />
345
346                                                                 <p:outputLabel value="#{msg.ASSIGNED_USER_OWNER_HEADER}" title="#{msg.ASSIGNED_USER_OWNER_TO_BRANCH_OFFICE_TITLE}" />
347                                                                 <p:link
348                                                                         outcome="admin_show_user"
349                                                                         target="_blank"
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}"
353                                                                         >
354                                                                         <f:param name="userId" value="#{branchOfficeListController.selectedBranchOffice.branchUserOwner.userId}" />
355                                                                 </p:link>
356                                                                 <h:outputText value="#{msg.NO_USER_ASSIGNED_AS_OWNER_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchUserOwner}" />
357
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}" />
361
362                                                                 <p:outputLabel value="#{msg.LANDLINE_NUMBER_HEADER}" title="#{msg.ASSIGNED_LANDLINE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
363                                                                 <p:link
364                                                                         outcome="admin_show_landline"
365                                                                         value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchLandLineNumber)}"
366                                                                         target="_blank"
367                                                                         title="#{msg.ADMIN_LINK_SHOW_LAND_LINE_NUMBER_TITLE}"
368                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}"
369                                                                         >
370                                                                         <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchLandLineNumber.phoneId}" />
371                                                                 </p:link>
372                                                                 <h:outputText value="#{msg.NO_LANDLINE_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}" />
373
374                                                                 <p:outputLabel value="#{msg.FAX_NUMBER_HEADER}" title="#{msg.ASSIGNED_FAX_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
375                                                                 <p:link
376                                                                         outcome="admin_show_fax"
377                                                                         value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchFaxNumber)}"
378                                                                         target="_blank"
379                                                                         title="#{msg.ADMIN_LINK_SHOW_FAX_NUMBER_TITLE}"
380                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}"
381                                                                         >
382                                                                         <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchFaxNumber.phoneId}" />
383                                                                 </p:link>
384                                                                 <h:outputText value="#{msg.NO_FAX_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}" />
385                                                         </p:panelGrid>
386                                                 </p:tab>
387
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}" />
393                                                                         </h:outputFormat>
394                                                                 </f:facet>
395
396                                                                 <p:outputLabel value="#{msg.STREET_NAME_HEADER}" title="#{msg.STREET_NAME_OF_BRANCH_OFFICE_TITLE}" />
397                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStreet}" />
398
399                                                                 <p:outputLabel value="#{msg.HOUSE_NUMBER_HEADER}" title="#{msg.HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
400                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumber}" />
401
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}" />
404
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}" />
407
408                                                                 <p:outputLabel value="#{msg.STORE_HEADER}" title="#{msg.STORE_OF_BRANCH_OFFICE_TITLE}" />
409                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStore}" />
410
411                                                                 <p:outputLabel value="#{msg.SUITE_NUMBER_HEADER}" title="#{msg.SUITE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
412                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchSuiteNumber}" />
413
414                                                                 <p:outputLabel value="#{msg.DATA_ZIP_CODE}" title="#{msg.ZIP_CODE_OF_BRANCH_OFFICE_TITLE}" />
415                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchZipCode}" />
416
417                                                                 <p:outputLabel value="#{msg.CITY_HEADER}" title="#{msg.CITY_OF_BRANCH_OFFICE_TITLE}" />
418                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchCity}" />
419
420                                                                 <p:outputLabel value="#{msg.COUNTRY_HEADER}" title="#{msg.COUNTRY_OF_BRANCH_OFFICE_TITLE}" />
421                                                                 <h:outputText value="#{beanHelper.renderCountry(branchOfficeListController.selectedBranchOffice.branchCountry)}" />
422                                                         </p:panelGrid>
423                                                 </p:tab>
424
425                                                 <p:tab title="#{msg.ADMIN_OPENING_TIMES_TAB_TITLE}">
426                                                         <core:outputOpeningTimesDataTable
427                                                                 id="branchOpeningTimeDetailList"
428                                                                 value="#{branchOfficeListController.selectedBranchOffice.branchOpeningTimes}"
429                                                                 rows="10"
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}"
434                                                                 />
435                                                 </p:tab>
436                                         </p:tabView>
437                                 </p:outputPanel>
438                         </p:dialog>
439                 </h:form>
440
441                 <h:form>
442                         <p:panelGrid
443                                 columns="1"
444                                 layout="grid"
445                                 >
446                                 <f:facet name="header">
447                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_TITLE}" />
448                                 </f:facet>
449
450                                 <h:panelGroup styleClass="para" layout="block">
451                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_MINIMUM_DATA}" />
452                                 </h:panelGroup>
453
454                                 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl" />
455
456                                 <f:facet name="footer">
457                                         <p:panelGrid columns="2" layout="grid">
458                                                 <p:commandButton
459                                                         type="reset"
460                                                         value="#{msg.BUTTON_RESET_FORM}"
461                                                         />
462
463                                                 <p:commandButton
464                                                         type="submit"
465                                                         value="#{msg.BUTTON_ADMIN_ADD_BASIC_DATA}"
466                                                         action="#{adminBranchOfficeController.addBranchOffice()}"
467                                                         update="form-list-branch-offices:branchOfficeList"
468                                                         oncomplete="PF('branchOfficeList').filter()"
469                                                         />
470                                         </p:panelGrid>
471                                 </f:facet>
472                         </p:panelGrid>
473                 </h:form>
474
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}"
480                                         rows="10"
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}"
485                                         />
486                         </p:fieldset>
487                 </h:form>
488
489                 <h:form>
490                         <p:panelGrid
491                                 columns="1"
492                                 layout="grid"
493                                 >
494                                 <f:facet name="header">
495                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME_TITLE}" />
496                                 </f:facet>
497
498                                 <h:panelGroup styleClass="para" layout="block">
499                                         <h:outputText value="#{msg.ADMIN_ADD_OPENING_TIME_MINIMUM_DATA}" />
500                                 </h:panelGroup>
501
502                                 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_opening_time.tpl" />
503
504                                 <f:facet name="footer">
505                                         <p:panelGrid columns="2" layout="grid">
506                                                 <p:commandButton
507                                                         type="reset"
508                                                         value="#{msg.BUTTON_RESET_FORM}"
509                                                         />
510
511                                                 <p:commandButton
512                                                         type="submit"
513                                                         value="#{msg.BUTTON_ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME}"
514                                                         action="#{adminBranchOfficeController.addOpeningTime()}"
515                                                         update="form-list-branch-opening-time:branchOpeningTimeList"
516                                                         oncomplete=""
517                                                         />
518                                         </p:panelGrid>
519                                 </f:facet>
520                         </p:panelGrid>
521                 </h:form>
522         </ui:define>
523 </ui:composition>