]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/branch_office/admin_branch_office_list.xhtml
310934e5672fdf33de7a9d38802918d2cba0c331
[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 headerText="#{msg.ID_HEADER}" sortBy="#{branchOffice.branchId}" filterable="false">
84                                         <p:link outcome="admin_show_branch_office" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_TITLE}" value="#{branchOffice.branchId}">
85                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
86                                         </p:link>
87                                 </p:column>
88
89                                 <p:column headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_HEADER}" sortBy="#{branchOffice.branchCompany}" filterBy="#{branchOffice.branchCompany}" filterMatchMode="in">
90                                         <f:facet name="filter">
91                                                 <p:selectCheckboxMenu
92                                                         filter="true"
93                                                         filterMatchMode="contains"
94                                                         label="#{msg.LABEL_COMPANIES}"
95                                                         onchange="PF('branchOfficeList').filter()"
96                                                         updateLabel="true"
97                                                         title="#{msg.FILTER_BY_MULTIPLE_COMPANIES_TITLE}"
98                                                         >
99                                                         <f:converter converterId="BasicCompanyDataConverter" />
100
101                                                         <f:selectItems
102                                                                 value="#{basicDataListController.allBasicData}"
103                                                                 var="basicData"
104                                                                 itemValue="#{basicData}"
105                                                                 itemLabel="#{beanHelper.renderBasicData(basicData)}"
106                                                                 />
107                                                 </p:selectCheckboxMenu>
108                                         </f:facet>
109
110                                         <p:link outcome="admin_show_basic_data" value="#{beanHelper.renderBasicData(branchOffice.branchCompany)}" title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}">
111                                                 <f:param name="basicDataId" value="#{branchOffice.branchCompany.basicDataId}" />
112                                         </p:link>
113                                 </p:column>
114
115                                 <p:column headerText="#{msg.ADMIN_ASSIGNED_USER_HEADER}" sortBy="#{branchOffice.branchUserOwner}" filterBy="#{branchOffice.branchUserOwner}" filterMatchMode="in">
116                                         <f:facet name="filter">
117                                                 <p:selectCheckboxMenu
118                                                         filter="true"
119                                                         filterMatchMode="contains"
120                                                         label="#{msg.LABEL_USERS}"
121                                                         onchange="PF('branchOfficeList').filter()"
122                                                         updateLabel="true"
123                                                         title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}"
124                                                         >
125                                                         <f:converter converterId="UserConverter" />
126
127                                                         <f:selectItems
128                                                                 value="#{userController.allUsers()}"
129                                                                 var="user"
130                                                                 itemValue="#{user}"
131                                                                 itemLabel="#{beanHelper.renderUser(user)}"
132                                                                 />
133                                                 </p:selectCheckboxMenu>
134                                         </f:facet>
135
136                                         <p:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}" value="#{beanHelper.renderUser(branchOffice.branchUserOwner)}" rendered="#{not empty branchOffice.branchUserOwner}">
137                                                 <f:param name="userId" value="#{branchOffice.branchUserOwner.userId}" />
138                                         </p:link>
139
140                                         <p:link outcome="admin_assign_branch_office_owner" title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_OWNER_USER_TITLE}" value="#{msg.ADMIN_LINK_ASSIGN}" rendered="#{empty branchOffice.branchUserOwner}">
141                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
142                                         </p:link>
143                                 </p:column>
144
145                                 <p:column headerText="#{msg.DATA_EMAIL_ADDRESS}" sortBy="#{branchOffice.branchEmailAddress}" filterBy="#{branchOffice.branchEmailAddress}" filterMatchMode="contains">
146                                         <p:link href="mailto:#{branchOffice.branchEmailAddress}" value="#{branchOffice.branchEmailAddress}" rendered="#{not empty branchOffice.branchEmailAddress}" />
147
148                                         <h:outputText value="#{msg.NO_EMAIL_ADDRESS_ENTERED}" rendered="#{empty branchOffice.branchEmailAddress}" />
149                                 </p:column>
150
151                                 <p:column headerText="#{msg.DATA_ADDRESS}" sortBy="#{branchOffice.branchCity}" filterBy="#{branchOffice.branchCity}" filterMatchMode="contains">
152                                         <h:outputText value="#{beanHelper.renderBranchOffice(branchOffice)}" title="#{beanHelper.renderBranchOffice(branchOffice)}" />
153                                 </p:column>
154
155                                 <p:column headerText="#{msg.ADMIN_COMPANY_CONTACT_PERSON_HEADER}" sortBy="#{branchOffice.branchContactEmployee}" filterBy="#{branchOffice.branchContactEmployee}" filterMatchMode="in">
156                                         <f:facet name="filter">
157                                                 <p:selectCheckboxMenu
158                                                         filter="true"
159                                                         filterMatchMode="contains"
160                                                         label="#{msg.LABEL_EMPLOYEES}"
161                                                         onchange="PF('branchOfficeList').filter()"
162                                                         updateLabel="true"
163                                                         title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}"
164                                                         >
165                                                         <f:converter converterId="EmployeeConverter" />
166
167                                                         <f:selectItems
168                                                                 value="#{employeeController.allEmployees()}"
169                                                                 var="employee"
170                                                                 itemValue="#{employee}"
171                                                                 itemLabel="#{beanHelper.renderEmployee(employee)}"
172                                                                 />
173                                                 </p:selectCheckboxMenu>
174                                         </f:facet>
175
176                                         <p:link outcome="admin_show_employee" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}" value="#{beanHelper.renderEmployee(branchOffice.branchContactEmployee)}" rendered="#{not empty branchOffice.branchContactEmployee}">
177                                                 <f:param name="employeeId" value="#{branchOffice.branchContactEmployee.employeeId}" />
178                                         </p:link>
179
180                                         <p:link outcome="admin_assign_branch_office_employee" title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_CONTACT_PERSON_TITLE}" value="#{msg.ADMIN_LINK_ASSIGN}" rendered="#{empty branchOffice.branchContactEmployee}">
181                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
182                                         </p:link>
183                                 </p:column>
184
185                                 <p:column headerText="#{msg.ENTRY_CREATED_HEADER}" sortBy="#{branchOffice.branchCreated}" filterable="false">
186                                         <h:outputText id="branchCreated" value="#{branchOffice.branchCreated}">
187                                                 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
188                                         </h:outputText>
189                                 </p:column>
190
191                                 <p:column headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}" sortable="false" filterable="false">
192                                         <links:outputBranchOfficeAdminDropdownMenu branchOffice="#{branchOffice}" />
193                                 </p:column>
194                         </p:dataTable>
195
196                         <p:dialog
197                                 dynamic="true"
198                                 modal="true"
199                                 resizable="false"
200                                 header="#{msg.ADMIN_SINGLE_BRANCH_OFFICE_DETAILS_HEADER}"
201                                 hideEffect="fade"
202                                 showEffect="fade"
203                                 widgetVar="branchOfficeDialog"
204                                 position="top"
205                                 responsive="true"
206                                 >
207                                 <p:outputPanel id="branchOffice-details">
208                                         <p:tabView>
209                                                 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_DATA_TAB_TITLE}">
210                                                         <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
211                                                                 <f:facet name="header">
212                                                                         <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_BASIC_DETAILS_HEADER}">
213                                                                                 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
214                                                                         </h:outputFormat>
215                                                                 </f:facet>
216
217                                                                 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.BRANCH_OFFICE_ID_NUMBER_TITLE}" />
218                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
219
220                                                                 <p:outputLabel value="#{msg.BRANCH_OFFICE_NUMBER_HEADER}" title="#{msg.BRANCH_OFFICE_NUMBER_TITLE}" />
221                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchNumber}" />
222
223                                                                 <p:outputLabel value="#{msg.ASSIGNED_BASIC_DATA_HEADER}" title="#{msg.ASSIGNED_BASIC_DATA_TO_BRANCH_OFFICE_TITLE}" />
224                                                                 <p:link outcome="admin_show_basic_data" target="_blank" value="#{beanHelper.renderBasicData(branchOfficeListController.selectedBranchOffice.branchCompany)}" title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}">
225                                                                         <f:param name="basicDataId" value="#{branchOfficeListController.selectedBranchOffice.branchCompany.basicDataId}" />
226                                                                 </p:link>
227
228                                                                 <p:outputLabel value="#{msg.ASSIGNED_CONTACT_PERSON_HEADER}" title="#{msg.ASSIGNED_CONTACT_PERSON_TO_BRANCH_OFFICE_TITLE}" />
229                                                                 <p:link outcome="admin_show_employee" target="_blank" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}" value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchContactEmployee)}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}">
230                                                                         <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
231                                                                 </p:link>
232                                                                 <h:outputText value="#{msg.NO_CONTACT_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}" />
233
234                                                                 <p:outputLabel value="#{msg.ASSIGNED_OWNER_EMPLOYEE_HEADER}" title="#{msg.ASSIGNED_OWNER_EMPLOYEE_TO_BRANCH_OFFICE_TITLE}" />
235                                                                 <p:link outcome="admin_show_employee" target="_blank" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_EMPLOYEE_TITLE}" value="#{beanHelper.renderEmployee(branchOfficeListController.selectedBranchOffice.branchOwnerEmployee)}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}">
236                                                                         <f:param name="employeeId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.employeeId}" />
237                                                                 </p:link>
238                                                                 <h:outputText value="#{msg.NO_OWNER_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}" />
239
240                                                                 <p:outputLabel value="#{msg.ASSIGNED_USER_OWNER_HEADER}" title="#{msg.ASSIGNED_USER_OWNER_TO_BRANCH_OFFICE_TITLE}" />
241                                                                 <p:link outcome="admin_show_user" target="_blank" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}" value="#{beanHelper.renderUser(branchOfficeListController.selectedBranchOffice.branchUserOwner)}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchUserOwner}">
242                                                                         <f:param name="userId" value="#{branchOfficeListController.selectedBranchOffice.branchUserOwner.userId}" />
243                                                                 </p:link>
244                                                                 <h:outputText value="#{msg.NO_USER_ASSIGNED_AS_OWNER_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchUserOwner}" />
245
246                                                                 <p:outputLabel value="#{msg.EMAIL_ADDRESS_HEADER}" title="#{msg.EMAIL_ADDRESS_OF_BRANCH_OFFICE_TITLE}" />
247                                                                 <h:outputLink value="mailto:#{branchOfficeListController.selectedBranchOffice.branchEmailAddress}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
248                                                                 <h:outputText value="#{msg.BRANCH_OFFICE_HAS_NO_EMAIL_ADDRESS}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
249
250                                                                 <p:outputLabel value="#{msg.LANDLINE_NUMBER_HEADER}" title="#{msg.ASSIGNED_LANDLINE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
251                                                                 <p:link
252                                                                         outcome="admin_show_landline"
253                                                                         value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchLandLineNumber)}"
254                                                                         target="_blank"
255                                                                         title="#{msg.ADMIN_LINK_SHOW_LAND_LINE_NUMBER_TITLE}"
256                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}"
257                                                                         >
258                                                                         <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchLandLineNumber.phoneId}" />
259                                                                 </p:link>
260                                                                 <h:outputText value="#{msg.NO_LANDLINE_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}" />
261
262                                                                 <p:outputLabel value="#{msg.FAX_NUMBER_HEADER}" title="#{msg.ASSIGNED_FAX_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
263                                                                 <p:link
264                                                                         outcome="admin_show_fax"
265                                                                         value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchFaxNumber)}"
266                                                                         target="_blank"
267                                                                         title="#{msg.ADMIN_LINK_SHOW_FAX_NUMBER_TITLE}"
268                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}"
269                                                                         >
270                                                                         <f:param name="phoneId" value="#{branchOfficeListController.selectedBranchOffice.branchFaxNumber.phoneId}" />
271                                                                 </p:link>
272                                                                 <h:outputText value="#{msg.NO_FAX_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}" />
273                                                         </p:panelGrid>
274                                                 </p:tab>
275
276                                                 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_TAB_TITLE}">
277                                                         <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
278                                                                 <f:facet name="header">
279                                                                         <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_DETAILS_HEADER}">
280                                                                                 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
281                                                                         </h:outputFormat>
282                                                                 </f:facet>
283
284                                                                 <p:outputLabel value="#{msg.STREET_NAME_HEADER}" title="#{msg.STREET_NAME_OF_BRANCH_OFFICE_TITLE}" />
285                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStreet}" />
286
287                                                                 <p:outputLabel value="#{msg.HOUSE_NUMBER_HEADER}" title="#{msg.HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
288                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumber}" />
289
290                                                                 <p:outputLabel value="#{msg.LAST_HOUSE_NUMBER_HEADER}" title="#{msg.LAST_HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
291                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchLastHouseNumber}" />
292
293                                                                 <p:outputLabel value="#{msg.HOUSE_NUMBER_EXTENSION_HEADER}" title="#{msg.HOUSE_NUMBER_EXTENSION_OF_BRANCH_OFFICE_TITLE}" />
294                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumberExtension}" />
295
296                                                                 <p:outputLabel value="#{msg.STORE_HEADER}" title="#{msg.STORE_OF_BRANCH_OFFICE_TITLE}" />
297                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStore}" />
298
299                                                                 <p:outputLabel value="#{msg.SUITE_NUMBER_HEADER}" title="#{msg.SUITE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
300                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchSuiteNumber}" />
301
302                                                                 <p:outputLabel value="#{msg.ZIP_CODE_HEADER}" title="#{msg.ZIP_CODE_OF_BRANCH_OFFICE_TITLE}" />
303                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchZipCode}" />
304
305                                                                 <p:outputLabel value="#{msg.CITY_HEADER}" title="#{msg.CITY_OF_BRANCH_OFFICE_TITLE}" />
306                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchCity}" />
307
308                                                                 <p:outputLabel value="#{msg.COUNTRY_HEADER}" title="#{msg.COUNTRY_OF_BRANCH_OFFICE_TITLE}" />
309                                                                 <h:outputText value="#{beanHelper.renderCountry(branchOfficeListController.selectedBranchOffice.branchCountry)}" />
310                                                         </p:panelGrid>
311                                                 </p:tab>
312
313                                                 <p:tab title="#{msg.ADMIN_OPENING_TIMES_TAB_TITLE}">
314                                                         <core:outputOpeningTimesDataTable
315                                                                 id="branchOpeningTimeDetailList"
316                                                                 value="#{branchOfficeListController.selectedBranchOffice.branchOpeningTimes}"
317                                                                 rows="10"
318                                                                 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
319                                                                 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
320                                                                 widgetVar="branchOpeningTimeDetailList"
321                                                                 headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
322                                                                 />
323                                                 </p:tab>
324                                         </p:tabView>
325                                 </p:outputPanel>
326                         </p:dialog>
327                 </h:form>
328
329                 <h:form>
330                         <p:panelGrid
331                                 columns="1"
332                                 layout="grid"
333                                 >
334                                 <f:facet name="header">
335                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_TITLE}" />
336                                 </f:facet>
337
338                                 <h:panelGroup styleClass="para" layout="block">
339                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_MINIMUM_DATA}" />
340                                 </h:panelGroup>
341
342                                 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl" />
343
344                                 <f:facet name="footer">
345                                         <p:panelGrid columns="2" layout="grid">
346                                                 <p:commandButton
347                                                         type="reset"
348                                                         value="#{msg.BUTTON_RESET_FORM}"
349                                                         />
350
351                                                 <p:commandButton
352                                                         type="submit"
353                                                         value="#{msg.BUTTON_ADMIN_ADD_BASIC_DATA}"
354                                                         action="#{adminBranchOfficeController.addBranchOffice()}"
355                                                         update=":master:form-list-branch-offices:branchOfficeList"
356                                                         oncomplete="PF('branchOfficeList').filter()"
357                                                         />
358                                         </p:panelGrid>
359                                 </f:facet>
360                         </p:panelGrid>
361                 </h:form>
362
363                 <h:form id="form-list-branch-opening-time">
364                         <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_OPENING_TIMES_LEGEND}">
365                                 <core:outputOpeningTimesDataTable
366                                         id="branchOpeningTimeList"
367                                         value="#{adminBranchOfficeController.branchOpeningTimes}"
368                                         rows="10"
369                                         summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
370                                         emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
371                                         widgetVar="branchOpeningTimeList"
372                                         headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
373                                         />
374                         </p:fieldset>
375                 </h:form>
376
377                 <h:form>
378                         <p:panelGrid
379                                 columns="1"
380                                 layout="grid"
381                                 >
382                                 <f:facet name="header">
383                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME_TITLE}" />
384                                 </f:facet>
385
386                                 <h:panelGroup styleClass="para" layout="block">
387                                         <h:outputText value="#{msg.ADMIN_ADD_OPENING_TIME_MINIMUM_DATA}" />
388                                 </h:panelGroup>
389
390                                 <ui:include src="/WEB-INF/templates/admin/branch_office/admin_form_branch_opening_time.tpl" />
391
392                                 <f:facet name="footer">
393                                         <p:panelGrid columns="2" layout="grid">
394                                                 <p:commandButton
395                                                         type="reset"
396                                                         value="#{msg.BUTTON_RESET_FORM}"
397                                                         />
398
399                                                 <p:commandButton
400                                                         type="submit"
401                                                         value="#{msg.BUTTON_ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME}"
402                                                         action="#{adminBranchOfficeController.addOpeningTime()}"
403                                                         update=":master:form-list-branch-opening-time:branchOpeningTimeList"
404                                                         oncomplete=""
405                                                         />
406                                         </p:panelGrid>
407                                 </f:facet>
408                         </p:panelGrid>
409                 </h:form>
410         </ui:define>
411 </ui:composition>