]> 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 for="globalFilter" value="#{msg.SEARCH_ALL_FIELDS}" style="float: right" />
59                                                         <p:inputText id="globalFilter" onkeyup="PF('branchOfficeList').filter()" placeholder="#{msg.ENTER_KEYWORD}"/>
60                                                 </p:panelGrid>
61
62                                                 <p:outputPanel>
63                                                         <p:spacer height="4" />
64
65                                                         <p:commandButton
66                                                                 id="toggler"
67                                                                 type="button"
68                                                                 value="#{msg.SELECT_SHOWN_COLUMNS}"
69                                                                 styleClass="column-selector"
70                                                                 />
71
72                                                         <p:columnToggler datasource="branchOfficeList" trigger="toggler" />
73                                                 </p:outputPanel>
74                                         </p:panelGrid>
75                                 </f:facet>
76
77                                 <p:ajax
78                                         event="rowSelect"
79                                         update=":master:form-list-branch-offices:branchOffice-details"
80                                         oncomplete="PF('branchOfficeDialog').show()"
81                                         />
82
83                                 <p:column
84                                         headerText="#{msg.ID_HEADER}"
85                                         sortBy="#{branchOffice.branchId}"
86                                         filterable="false"
87                                         >
88                                         <p:link
89                                                 outcome="admin_show_branch_office"
90                                                 value="#{branchOffice.branchId}"
91                                                 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_TITLE}"
92                                                 >
93                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
94                                         </p:link>
95                                 </p:column>
96
97                                 <p:column
98                                         headerText="#{msg.BRANCH_OFFICE_NUMBER_HEADER}"
99                                         sortBy="#{branchOffice.branchNumber}"
100                                         filterBy="#{branchOffice.branchNumber}"
101                                         filterMatchMode="contains"
102                                         >
103                                         <h:outputText value="#{branchOffice.branchNumber}" rendered="#{not empty branchOffice.branchNumber}" />
104                                         <h:outputText value="-" rendered="#{empty branchOffice.branchNumber}" />
105                                 </p:column>
106
107                                 <p:column
108                                         headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_HEADER}"
109                                         sortBy="#{branchOffice.branchCompany}"
110                                         filterBy="#{branchOffice.branchCompany}"
111                                         filterMatchMode="in"
112                                         >
113                                         <f:facet name="filter">
114                                                 <p:selectCheckboxMenu
115                                                         filter="true"
116                                                         filterMatchMode="contains"
117                                                         label="#{msg.LABEL_COMPANIES}"
118                                                         onchange="PF('branchOfficeList').filter()"
119                                                         updateLabel="true"
120                                                         title="#{msg.FILTER_BY_MULTIPLE_COMPANIES_TITLE}"
121                                                         >
122                                                         <f:converter converterId="BasicCompanyDataConverter" />
123
124                                                         <f:selectItems
125                                                                 value="#{basicDataListController.allBasicData}"
126                                                                 var="basicData"
127                                                                 itemValue="#{basicData}"
128                                                                 itemLabel="#{beanHelper.renderBasicData(basicData, true)}"
129                                                                 />
130                                                 </p:selectCheckboxMenu>
131                                         </f:facet>
132
133                                         <p:link
134                                                 outcome="admin_show_basic_data"
135                                                 value="#{beanHelper.renderBasicData(branchOffice.branchCompany, true)}"
136                                                 title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
137                                                 >
138                                                 <f:param name="basicDataId" value="#{branchOffice.branchCompany.basicDataId}" />
139                                         </p:link>
140                                 </p:column>
141
142                                 <p:column
143                                         headerText="#{msg.ADMIN_USER_HEADER}"
144                                         sortBy="#{branchOffice.branchUserOwner}"
145                                         filterBy="#{branchOffice.branchUserOwner}"
146                                         filterMatchMode="in"
147                                         >
148                                         <f:facet name="filter">
149                                                 <p:selectCheckboxMenu
150                                                         filter="true"
151                                                         filterMatchMode="contains"
152                                                         label="#{msg.LABEL_USERS}"
153                                                         onchange="PF('branchOfficeList').filter()"
154                                                         updateLabel="true"
155                                                         title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}"
156                                                         >
157                                                         <f:converter converterId="UserConverter" />
158
159                                                         <f:selectItems
160                                                                 value="#{userController.allUsers()}"
161                                                                 var="user"
162                                                                 itemValue="#{user}"
163                                                                 itemLabel="#{beanHelper.renderUser(user)}"
164                                                                 />
165                                                 </p:selectCheckboxMenu>
166                                         </f:facet>
167
168                                         <p:link
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}"
173                                                 >
174                                                 <f:param name="userId" value="#{branchOffice.branchUserOwner.userId}" />
175                                         </p:link>
176
177                                         <p:link
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}"
182                                                 >
183                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
184                                         </p:link>
185                                 </p:column>
186
187                                 <p:column
188                                         headerText="#{msg.DATA_EMAIL_ADDRESS}"
189                                         sortBy="#{branchOffice.branchEmailAddress}"
190                                         filterBy="#{branchOffice.branchEmailAddress}"
191                                         filterMatchMode="contains"
192                                         >
193                                         <p:link
194                                                 href="mailto:#{branchOffice.branchEmailAddress}"
195                                                 value="#{branchOffice.branchEmailAddress}"
196                                                 rendered="#{not empty branchOffice.branchEmailAddress}"
197                                                 />
198
199                                         <h:outputText value="#{msg.NO_EMAIL_ADDRESS_ENTERED}" rendered="#{empty branchOffice.branchEmailAddress}" />
200                                 </p:column>
201
202                                 <p:column
203                                         headerText="#{msg.DATA_ADDRESS}"
204                                         sortBy="#{branchOffice.branchCity}"
205                                         filterBy="#{branchOffice.branchCity}"
206                                         filterMatchMode="contains"
207                                         >
208                                         <h:outputText value="#{beanHelper.renderBranchOffice(branchOffice)}" title="#{beanHelper.renderBranchOffice(branchOffice)}" />
209                                 </p:column>
210
211                                 <p:column
212                                         headerText="#{msg.ADMIN_COMPANY_CONTACT_PERSON_HEADER}"
213                                         sortBy="#{branchOffice.branchContactEmployee}"
214                                         filterBy="#{branchOffice.branchContactEmployee}"
215                                         filterMatchMode="in"
216                                         >
217                                         <f:facet name="filter">
218                                                 <p:selectCheckboxMenu
219                                                         filter="true"
220                                                         filterMatchMode="contains"
221                                                         label="#{msg.LABEL_EMPLOYEES}"
222                                                         onchange="PF('branchOfficeList').filter()"
223                                                         updateLabel="true"
224                                                         title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}"
225                                                         >
226                                                         <f:converter converterId="EmployeeConverter" />
227
228                                                         <f:selectItems
229                                                                 value="#{employeeController.allEmployees()}"
230                                                                 var="employee"
231                                                                 itemValue="#{employee}"
232                                                                 itemLabel="#{beanHelper.renderEmployee(employee)}"
233                                                                 />
234                                                 </p:selectCheckboxMenu>
235                                         </f:facet>
236
237                                         <p:link
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}"
242                                                 >
243                                                 <f:param name="employeeId" value="#{branchOffice.branchContactEmployee.employeeId}" />
244                                         </p:link>
245
246                                         <p:link
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}"
251                                                 >
252                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
253                                         </p:link>
254                                 </p:column>
255
256                                 <p:column
257                                         headerText="#{msg.ENTRY_CREATED_HEADER}"
258                                         sortBy="#{branchOffice.branchCreated}"
259                                         filterable="false"
260                                         >
261                                         <h:outputText id="branchCreated" value="#{branchOffice.branchCreated}">
262                                                 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
263                                         </h:outputText>
264                                 </p:column>
265
266                                 <p:column
267                                         headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
268                                         sortable="false"
269                                         filterable="false"
270                                         >
271                                         <links:outputBranchOfficeAdminDropdownMenu branchOffice="#{branchOffice}" />
272                                 </p:column>
273                         </p:dataTable>
274
275                         <p:dialog
276                                 dynamic="true"
277                                 modal="true"
278                                 resizable="false"
279                                 header="#{msg.ADMIN_SINGLE_BRANCH_OFFICE_DETAILS_HEADER}"
280                                 hideEffect="fade"
281                                 showEffect="fade"
282                                 widgetVar="branchOfficeDialog"
283                                 position="top"
284                                 responsive="true"
285                                 closeOnEscape="true"
286                                 >
287                                 <p:outputPanel id="branchOffice-details">
288                                         <p:tabView>
289                                                 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_DATA_TAB_TITLE}">
290                                                         <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
291                                                                 <f:facet name="header">
292                                                                         <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_BASIC_DETAILS_HEADER}">
293                                                                                 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
294                                                                         </h:outputFormat>
295                                                                 </f:facet>
296
297                                                                 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.BRANCH_OFFICE_ID_NUMBER_TITLE}" />
298                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
299
300                                                                 <p:outputLabel value="#{msg.BRANCH_OFFICE_NUMBER_HEADER}" title="#{msg.BRANCH_OFFICE_NUMBER_TITLE}" />
301                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchNumber}" />
302
303                                                                 <p:outputLabel value="#{msg.ASSIGNED_BASIC_DATA_HEADER}" title="#{msg.ASSIGNED_BASIC_DATA_TO_BRANCH_OFFICE_TITLE}" />
304                                                                 <p:link
305                                                                         outcome="admin_show_basic_data"
306                                                                         target="_blank"
307                                                                         value="#{beanHelper.renderBasicData(branchOfficeListController.selectedBranchOffice.branchCompany, false)}"
308                                                                         title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
309                                                                         >
310                                                                         <f:param name="basicDataId" value="#{branchOfficeListController.selectedBranchOffice.branchCompany.basicDataId}" />
311                                                                 </p:link>
312
313                                                                 <p:outputLabel value="#{msg.ASSIGNED_CONTACT_PERSON_HEADER}" title="#{msg.ASSIGNED_CONTACT_PERSON_TO_BRANCH_OFFICE_TITLE}" />
314                                                                 <p:link
315                                                                         outcome="admin_show_employee"
316                                                                         target="_blank"
317                                                                         value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchContactEmployee)}"
318                                                                         title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}"
319                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}"
320                                                                         >
321                                                                         <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
322                                                                 </p:link>
323                                                                 <h:outputText value="#{msg.NO_CONTACT_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}" />
324
325                                                                 <p:outputLabel value="#{msg.ASSIGNED_OWNER_EMPLOYEE_HEADER}" title="#{msg.ASSIGNED_OWNER_EMPLOYEE_TO_BRANCH_OFFICE_TITLE}" />
326                                                                 <p:link
327                                                                         outcome="admin_show_employee"
328                                                                         target="_blank"
329                                                                         value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchOwnerEmployee)}"
330                                                                         title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_EMPLOYEE_TITLE}"
331                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}"
332                                                                         >
333                                                                         <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
334                                                                 </p:link>
335                                                                 <h:outputText value="#{msg.NO_OWNER_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}" />
336
337                                                                 <p:outputLabel value="#{msg.ASSIGNED_USER_OWNER_HEADER}" title="#{msg.ASSIGNED_USER_OWNER_TO_BRANCH_OFFICE_TITLE}" />
338                                                                 <p:link
339                                                                         outcome="admin_show_user"
340                                                                         target="_blank"
341                                                                         value="#{beanHelper.renderUser(branchOfficeListController.selectedBranchOffice.branchUserOwner)}"
342                                                                         title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}"
343                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchUserOwner}"
344                                                                         >
345                                                                         <f:param name="userId" value="#{branchOfficeListController.selectedBranchOffice.branchUserOwner.userId}" />
346                                                                 </p:link>
347                                                                 <h:outputText value="#{msg.NO_USER_ASSIGNED_AS_OWNER_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchUserOwner}" />
348
349                                                                 <p:outputLabel value="#{msg.EMAIL_ADDRESS_HEADER}" title="#{msg.EMAIL_ADDRESS_OF_BRANCH_OFFICE_TITLE}" />
350                                                                 <h:outputLink value="mailto:#{branchOfficeListController.selectedBranchOffice.branchEmailAddress}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
351                                                                 <h:outputText value="#{msg.BRANCH_OFFICE_HAS_NO_EMAIL_ADDRESS}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
352
353                                                                 <p:outputLabel value="#{msg.LANDLINE_NUMBER_HEADER}" title="#{msg.ASSIGNED_LANDLINE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
354                                                                 <p:link
355                                                                         outcome="admin_show_landline"
356                                                                         value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchLandLineNumber)}"
357                                                                         target="_blank"
358                                                                         title="#{msg.ADMIN_LINK_SHOW_LAND_LINE_NUMBER_TITLE}"
359                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}"
360                                                                         >
361                                                                         <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchLandLineNumber.phoneId}" />
362                                                                 </p:link>
363                                                                 <h:outputText value="#{msg.NO_LANDLINE_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}" />
364
365                                                                 <p:outputLabel value="#{msg.FAX_NUMBER_HEADER}" title="#{msg.ASSIGNED_FAX_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
366                                                                 <p:link
367                                                                         outcome="admin_show_fax"
368                                                                         value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchFaxNumber)}"
369                                                                         target="_blank"
370                                                                         title="#{msg.ADMIN_LINK_SHOW_FAX_NUMBER_TITLE}"
371                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}"
372                                                                         >
373                                                                         <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchFaxNumber.phoneId}" />
374                                                                 </p:link>
375                                                                 <h:outputText value="#{msg.NO_FAX_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}" />
376                                                         </p:panelGrid>
377                                                 </p:tab>
378
379                                                 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_TAB_TITLE}">
380                                                         <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
381                                                                 <f:facet name="header">
382                                                                         <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_DETAILS_HEADER}">
383                                                                                 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
384                                                                         </h:outputFormat>
385                                                                 </f:facet>
386
387                                                                 <p:outputLabel value="#{msg.STREET_NAME_HEADER}" title="#{msg.STREET_NAME_OF_BRANCH_OFFICE_TITLE}" />
388                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStreet}" />
389
390                                                                 <p:outputLabel value="#{msg.HOUSE_NUMBER_HEADER}" title="#{msg.HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
391                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumber}" />
392
393                                                                 <p:outputLabel value="#{msg.LAST_HOUSE_NUMBER_HEADER}" title="#{msg.LAST_HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
394                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchLastHouseNumber}" />
395
396                                                                 <p:outputLabel value="#{msg.HOUSE_NUMBER_EXTENSION_HEADER}" title="#{msg.HOUSE_NUMBER_EXTENSION_OF_BRANCH_OFFICE_TITLE}" />
397                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumberExtension}" />
398
399                                                                 <p:outputLabel value="#{msg.STORE_HEADER}" title="#{msg.STORE_OF_BRANCH_OFFICE_TITLE}" />
400                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStore}" />
401
402                                                                 <p:outputLabel value="#{msg.SUITE_NUMBER_HEADER}" title="#{msg.SUITE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
403                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchSuiteNumber}" />
404
405                                                                 <p:outputLabel value="#{msg.DATA_ZIP_CODE}" title="#{msg.ZIP_CODE_OF_BRANCH_OFFICE_TITLE}" />
406                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchZipCode}" />
407
408                                                                 <p:outputLabel value="#{msg.CITY_HEADER}" title="#{msg.CITY_OF_BRANCH_OFFICE_TITLE}" />
409                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchCity}" />
410
411                                                                 <p:outputLabel value="#{msg.COUNTRY_HEADER}" title="#{msg.COUNTRY_OF_BRANCH_OFFICE_TITLE}" />
412                                                                 <h:outputText value="#{beanHelper.renderCountry(branchOfficeListController.selectedBranchOffice.branchCountry)}" />
413                                                         </p:panelGrid>
414                                                 </p:tab>
415
416                                                 <p:tab title="#{msg.ADMIN_OPENING_TIMES_TAB_TITLE}">
417                                                         <core:outputOpeningTimesDataTable
418                                                                 id="branchOpeningTimeDetailList"
419                                                                 value="#{branchOfficeListController.selectedBranchOffice.branchOpeningTimes}"
420                                                                 rows="10"
421                                                                 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
422                                                                 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
423                                                                 widgetVar="branchOpeningTimeDetailList"
424                                                                 headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
425                                                                 />
426                                                 </p:tab>
427                                         </p:tabView>
428                                 </p:outputPanel>
429                         </p:dialog>
430                 </h:form>
431
432                 <h:form>
433                         <p:panelGrid
434                                 columns="1"
435                                 layout="grid"
436                                 >
437                                 <f:facet name="header">
438                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_TITLE}" />
439                                 </f:facet>
440
441                                 <h:panelGroup styleClass="para" layout="block">
442                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_MINIMUM_DATA}" />
443                                 </h:panelGroup>
444
445                                 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl" />
446
447                                 <f:facet name="footer">
448                                         <p:panelGrid columns="2" layout="grid">
449                                                 <p:commandButton
450                                                         type="reset"
451                                                         value="#{msg.BUTTON_RESET_FORM}"
452                                                         />
453
454                                                 <p:commandButton
455                                                         type="submit"
456                                                         value="#{msg.BUTTON_ADMIN_ADD_BASIC_DATA}"
457                                                         action="#{adminBranchOfficeController.addBranchOffice()}"
458                                                         update=":master:form-list-branch-offices:branchOfficeList"
459                                                         oncomplete="PF('branchOfficeList').filter()"
460                                                         />
461                                         </p:panelGrid>
462                                 </f:facet>
463                         </p:panelGrid>
464                 </h:form>
465
466                 <h:form id="form-list-branch-opening-time">
467                         <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_OPENING_TIMES_LEGEND}">
468                                 <core:outputOpeningTimesDataTable
469                                         id="branchOpeningTimeList"
470                                         value="#{adminBranchOfficeController.branchOpeningTimes}"
471                                         rows="10"
472                                         summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
473                                         emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
474                                         widgetVar="branchOpeningTimeList"
475                                         headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
476                                         />
477                         </p:fieldset>
478                 </h:form>
479
480                 <h:form>
481                         <p:panelGrid
482                                 columns="1"
483                                 layout="grid"
484                                 >
485                                 <f:facet name="header">
486                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME_TITLE}" />
487                                 </f:facet>
488
489                                 <h:panelGroup styleClass="para" layout="block">
490                                         <h:outputText value="#{msg.ADMIN_ADD_OPENING_TIME_MINIMUM_DATA}" />
491                                 </h:panelGroup>
492
493                                 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_opening_time.tpl" />
494
495                                 <f:facet name="footer">
496                                         <p:panelGrid columns="2" layout="grid">
497                                                 <p:commandButton
498                                                         type="reset"
499                                                         value="#{msg.BUTTON_RESET_FORM}"
500                                                         />
501
502                                                 <p:commandButton
503                                                         type="submit"
504                                                         value="#{msg.BUTTON_ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME}"
505                                                         action="#{adminBranchOfficeController.addOpeningTime()}"
506                                                         update=":master:form-list-branch-opening-time:branchOpeningTimeList"
507                                                         oncomplete=""
508                                                         />
509                                         </p:panelGrid>
510                                 </f:facet>
511                         </p:panelGrid>
512                 </h:form>
513         </ui:define>
514 </ui:composition>