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