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