]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/business/branch_office/admin_branch_office_list.xhtml
Updated copyright year
[jjobs-war.git] / web / admin / business / 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                                                         dynamic="true"
126                                                         label="#{msg.LABEL_COMPANIES}"
127                                                         onchange="PF('branchOfficeList').filter()"
128                                                         updateLabel="true"
129                                                         title="#{msg.FILTER_BY_MULTIPLE_COMPANIES_TITLE}"
130                                                         >
131                                                         <f:converter converterId="BasicCompanyDataConverter" />
132
133                                                         <f:selectItems
134                                                                 value="#{basicDataListController.allBasicData}"
135                                                                 var="basicData"
136                                                                 itemValue="#{basicData}"
137                                                                 itemLabel="#{beanHelper.renderBasicData(basicData, true, false)}"
138                                                                 />
139                                                 </p:selectCheckboxMenu>
140                                         </f:facet>
141
142                                         <p:link
143                                                 outcome="admin_show_basic_data"
144                                                 value="#{beanHelper.renderBasicData(branchOffice.branchCompany, true, false)}"
145                                                 title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
146                                                 >
147                                                 <f:param name="basicDataId" value="#{branchOffice.branchCompany.basicDataId}" />
148                                         </p:link>
149                                 </p:column>
150
151                                 <p:column
152                                         headerText="#{msg.ADMIN_USER_HEADER}"
153                                         sortBy="#{branchOffice.branchUserOwner}"
154                                         filterBy="#{branchOffice.branchUserOwner}"
155                                         filterMatchMode="in"
156                                         >
157                                         <f:facet name="filter">
158                                                 <p:selectCheckboxMenu
159                                                         filter="true"
160                                                         filterMatchMode="contains"
161                                                         dynamic="true"
162                                                         label="#{msg.LABEL_USERS}"
163                                                         onchange="PF('branchOfficeList').filter()"
164                                                         updateLabel="true"
165                                                         title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}"
166                                                         >
167                                                         <f:converter converterId="UserConverter" />
168
169                                                         <f:selectItems
170                                                                 value="#{userListController.allUsers}"
171                                                                 var="user"
172                                                                 itemValue="#{user}"
173                                                                 itemLabel="#{beanHelper.renderUser(user)}"
174                                                                 />
175                                                 </p:selectCheckboxMenu>
176                                         </f:facet>
177
178                                         <p:link
179                                                 outcome="admin_show_user"
180                                                 value="#{beanHelper.renderUser(branchOffice.branchUserOwner)}"
181                                                 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}"
182                                                 rendered="#{not empty branchOffice.branchUserOwner}"
183                                                 >
184                                                 <f:param name="userId" value="#{branchOffice.branchUserOwner.userId}" />
185                                         </p:link>
186
187                                         <p:link
188                                                 outcome="admin_assign_branch_office_owner"
189                                                 value="#{msg.ADMIN_LINK_ASSIGN}"
190                                                 title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_OWNER_USER_TITLE}"
191                                                 rendered="#{empty branchOffice.branchUserOwner}"
192                                                 >
193                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
194                                         </p:link>
195                                 </p:column>
196
197                                 <p:column
198                                         headerText="#{msg.DATA_EMAIL_ADDRESS}"
199                                         sortBy="#{branchOffice.branchEmailAddress}"
200                                         filterBy="#{branchOffice.branchEmailAddress}"
201                                         filterMatchMode="contains"
202                                         >
203                                         <p:link
204                                                 href="mailto:#{branchOffice.branchEmailAddress}"
205                                                 value="#{branchOffice.branchEmailAddress}"
206                                                 rendered="#{not empty branchOffice.branchEmailAddress}"
207                                                 />
208
209                                         <h:outputText value="#{msg.NO_EMAIL_ADDRESS_ENTERED}" rendered="#{empty branchOffice.branchEmailAddress}" />
210                                 </p:column>
211
212                                 <p:column
213                                         headerText="#{msg.DATA_ADDRESS}"
214                                         sortBy="#{branchOffice.branchCity}"
215                                         filterBy="#{branchOffice.branchCity}"
216                                         filterMatchMode="contains"
217                                         >
218                                         <h:outputText
219                                                 value="#{beanHelper.renderBranchOffice(branchOffice, false)}"
220                                                 title="#{beanHelper.renderBranchOffice(branchOffice, true)}"
221                                                 />
222                                 </p:column>
223
224                                 <p:column
225                                         headerText="#{msg.ADMIN_COMPANY_CONTACT_PERSON_HEADER}"
226                                         sortBy="#{branchOffice.branchContactEmployee}"
227                                         filterBy="#{branchOffice.branchContactEmployee}"
228                                         filterMatchMode="in"
229                                         >
230                                         <f:facet name="filter">
231                                                 <p:selectCheckboxMenu
232                                                         filter="true"
233                                                         dynamic="true"
234                                                         filterMatchMode="contains"
235                                                         label="#{msg.LABEL_EMPLOYEES}"
236                                                         onchange="PF('branchOfficeList').filter()"
237                                                         updateLabel="true"
238                                                         title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}"
239                                                         >
240                                                         <f:converter converterId="ContactConverter" />
241
242                                                         <f:selectItems
243                                                                 value="#{contactListController.allContacts}"
244                                                                 var="contact"
245                                                                 itemValue="#{contact}"
246                                                                 itemLabel="#{beanHelper.renderContact(contact)}"
247                                                                 />
248                                                 </p:selectCheckboxMenu>
249                                         </f:facet>
250
251                                         <p:link
252                                                 outcome="admin_show_contact"
253                                                 value="#{beanHelper.renderContact(branchOffice.branchContactEmployee)}"
254                                                 title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}"
255                                                 rendered="#{not empty branchOffice.branchContactEmployee}"
256                                                 >
257                                                 <f:param name="contactId" value="#{branchOffice.branchContactEmployee.contactId}" />
258                                         </p:link>
259
260                                         <p:link
261                                                 outcome="admin_assign_branch_office_contact"
262                                                 value="#{msg.ADMIN_LINK_ASSIGN}"
263                                                 title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_CONTACT_PERSON_TITLE}"
264                                                 rendered="#{empty branchOffice.branchContactEmployee}"
265                                                 >
266                                                 <f:param name="branchId" value="#{branchOffice.branchId}" />
267                                         </p:link>
268                                 </p:column>
269
270                                 <p:column
271                                         headerText="#{msg.ENTRY_CREATED_HEADER}"
272                                         sortBy="#{branchOffice.branchEntryCreated}"
273                                         filterable="false"
274                                         >
275                                         <h:outputText value="#{branchOffice.branchEntryCreated}">
276                                                 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
277                                         </h:outputText>
278                                 </p:column>
279
280                                 <p:column
281                                         headerText="#{msg.ENTRY_UPDATED_HEADER}"
282                                         sortBy="#{branchOffice.branchEntryUpdated}"
283                                         filterable="false"
284                                         >
285                                         <h:outputText value="#{branchOffice.branchEntryUpdated}">
286                                                 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
287                                         </h:outputText>
288                                 </p:column>
289
290                                 <p:column
291                                         headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
292                                         sortable="false"
293                                         filterable="false"
294                                         >
295                                         <p:menuButton value="#{msg.OPTIONS}">
296                                                 <p:menuitem
297                                                         outcome="admin_show_branch_office"
298                                                         value="#{msg.ADMIN_LINK_SHOW_SHORT}"
299                                                         title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_TITLE}"
300                                                         >
301                                                         <f:param name="branchId" value="#{branchOffice.branchId}" />
302                                                 </p:menuitem>
303
304                                                 <p:menuitem
305                                                         outcome="admin_edit_branch_office"
306                                                         value="#{msg.ADMIN_LINK_EDIT_SHORT}"
307                                                         title="#{msg.ADMIN_LINK_EDIT_BRANCH_OFFICE_TITLE}"
308                                                         >
309                                                         <f:param name="branchId" value="#{branchOffice.branchId}" />
310                                                 </p:menuitem>
311
312                                                 <p:menuitem outcome="admin_delete_branch_office">
313                                                         <h:outputText
314                                                                 styleClass="link-danger"
315                                                                 value="#{msg.ADMIN_LINK_DELETE_SHORT}"
316                                                                 title="#{msg.ADMIN_LINK_DELETE_BRANCH_OFFICE_TITLE}"
317                                                                 />
318                                                         <f:param name="branchId" value="#{branchOffice.branchId}" />
319                                                 </p:menuitem>
320                                         </p:menuButton>
321                                 </p:column>
322                         </p:dataTable>
323
324                         <p:dialog
325                                 dynamic="true"
326                                 modal="true"
327                                 resizable="false"
328                                 header="#{msg.ADMIN_SINGLE_BRANCH_OFFICE_DETAILS_HEADER}"
329                                 hideEffect="fade"
330                                 showEffect="fade"
331                                 widgetVar="branchOfficeDialog"
332                                 position="top"
333                                 responsive="true"
334                                 closeOnEscape="true"
335                                 >
336                                 <p:outputPanel id="branch-office-details">
337                                         <p:tabView>
338                                                 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_DATA_TAB_TITLE}">
339                                                         <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
340                                                                 <f:facet name="header">
341                                                                         <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_BASIC_DETAILS_HEADER}">
342                                                                                 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
343                                                                         </h:outputFormat>
344                                                                 </f:facet>
345
346                                                                 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.BRANCH_OFFICE_ID_NUMBER_TITLE}" />
347                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
348
349                                                                 <p:outputLabel value="#{msg.BRANCH_OFFICE_NUMBER_HEADER}" title="#{msg.BRANCH_OFFICE_NUMBER_TITLE}" />
350                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchNumber}" />
351
352                                                                 <p:outputLabel value="#{msg.ASSIGNED_BASIC_DATA_HEADER}" title="#{msg.ASSIGNED_BASIC_DATA_TO_BRANCH_OFFICE_TITLE}" />
353                                                                 <p:link
354                                                                         outcome="admin_show_basic_data"
355                                                                         target="_blank"
356                                                                         value="#{beanHelper.renderBasicData(branchOfficeListController.selectedBranchOffice.branchCompany, false, true)}"
357                                                                         title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}"
358                                                                         >
359                                                                         <f:param name="basicDataId" value="#{branchOfficeListController.selectedBranchOffice.branchCompany.basicDataId}" />
360                                                                 </p:link>
361
362                                                                 <p:outputLabel value="#{msg.ASSIGNED_CONTACT_PERSON_HEADER}" title="#{msg.ASSIGNED_CONTACT_PERSON_TO_BRANCH_OFFICE_TITLE}" />
363                                                                 <p:link
364                                                                         outcome="admin_show_contact"
365                                                                         target="_blank"
366                                                                         value="#{beanHelper.renderContact(branchOfficeListController.selectedBranchOffice.branchContactEmployee)}"
367                                                                         title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_CONTACT_PERSON_TITLE}"
368                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}"
369                                                                         >
370                                                                         <f:param name="contactId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.contactId}" />
371                                                                 </p:link>
372                                                                 <h:outputText value="#{msg.NO_CONTACT_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchContactEmployee}" />
373
374                                                                 <p:outputLabel value="#{msg.ASSIGNED_OWNER_EMPLOYEE_HEADER}" title="#{msg.ASSIGNED_OWNER_EMPLOYEE_TO_BRANCH_OFFICE_TITLE}" />
375                                                                 <p:link
376                                                                         outcome="admin_show_contact"
377                                                                         target="_blank"
378                                                                         value="#{beanHelper.renderContact(branchOfficeListController.selectedBranchOffice.branchOwnerEmployee)}"
379                                                                         title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_EMPLOYEE_TITLE}"
380                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}"
381                                                                         >
382                                                                         <f:param name="contactId" value="#{branchOfficeListController.selectedBranchOffice.branchContactEmployee.contactId}" />
383                                                                 </p:link>
384                                                                 <h:outputText value="#{msg.NO_OWNER_EMPLOYEE_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchOwnerEmployee}" />
385
386                                                                 <p:outputLabel value="#{msg.ASSIGNED_USER_OWNER_HEADER}" title="#{msg.ASSIGNED_USER_OWNER_TO_BRANCH_OFFICE_TITLE}" />
387                                                                 <p:link
388                                                                         outcome="admin_show_user"
389                                                                         target="_blank"
390                                                                         value="#{beanHelper.renderUser(branchOfficeListController.selectedBranchOffice.branchUserOwner)}"
391                                                                         title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_OWNER_USER_TITLE}"
392                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchUserOwner}"
393                                                                         >
394                                                                         <f:param name="userId" value="#{branchOfficeListController.selectedBranchOffice.branchUserOwner.userId}" />
395                                                                 </p:link>
396                                                                 <h:outputText value="#{msg.NO_USER_ASSIGNED_AS_OWNER_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchUserOwner}" />
397
398                                                                 <p:outputLabel value="#{msg.EMAIL_ADDRESS_HEADER}" title="#{msg.EMAIL_ADDRESS_OF_BRANCH_OFFICE_TITLE}" />
399                                                                 <h:outputLink value="mailto:#{branchOfficeListController.selectedBranchOffice.branchEmailAddress}" rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
400                                                                 <h:outputText value="#{msg.BRANCH_OFFICE_HAS_NO_EMAIL_ADDRESS}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchEmailAddress}" />
401
402                                                                 <p:outputLabel value="#{msg.LANDLINE_NUMBER_HEADER}" title="#{msg.ASSIGNED_LANDLINE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
403                                                                 <p:link
404                                                                         outcome="admin_show_landline"
405                                                                         value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchLandLineNumber)}"
406                                                                         target="_blank"
407                                                                         title="#{msg.ADMIN_LINK_SHOW_LAND_LINE_NUMBER_TITLE}"
408                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}"
409                                                                         >
410                                                                         <f:param name="landLineId" value="#{branchOfficeListController.selectedBranchOffice.branchLandLineNumber.phoneId}" />
411                                                                 </p:link>
412                                                                 <h:outputText value="#{msg.NO_LANDLINE_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchLandLineNumber}" />
413
414                                                                 <p:outputLabel value="#{msg.FAX_NUMBER_HEADER}" title="#{msg.ASSIGNED_FAX_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
415                                                                 <p:link
416                                                                         outcome="admin_show_fax"
417                                                                         value="#{beanHelper.renderPhoneNumber(branchOfficeListController.selectedBranchOffice.branchFaxNumber)}"
418                                                                         target="_blank"
419                                                                         title="#{msg.ADMIN_LINK_SHOW_FAX_NUMBER_TITLE}"
420                                                                         rendered="#{not empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}"
421                                                                         >
422                                                                         <f:param name="faxId" value="#{branchOfficeListController.selectedBranchOffice.branchFaxNumber.phoneId}" />
423                                                                 </p:link>
424                                                                 <h:outputText value="#{msg.NO_FAX_NUMBER_ASSIGNED_TO_BRANCH_OFFICE}" rendered="#{empty branchOfficeListController.selectedBranchOffice.branchFaxNumber}" />
425                                                         </p:panelGrid>
426                                                 </p:tab>
427
428                                                 <p:tab title="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_TAB_TITLE}">
429                                                         <p:panelGrid columns="2" rendered="#{not empty branchOfficeListController.selectedBranchOffice}">
430                                                                 <f:facet name="header">
431                                                                         <h:outputFormat value="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_DETAILS_HEADER}">
432                                                                                 <f:param value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
433                                                                         </h:outputFormat>
434                                                                 </f:facet>
435
436                                                                 <p:outputLabel value="#{msg.STREET_NAME_HEADER}" title="#{msg.STREET_NAME_OF_BRANCH_OFFICE_TITLE}" />
437                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStreet}" />
438
439                                                                 <p:outputLabel value="#{msg.HOUSE_NUMBER_HEADER}" title="#{msg.HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
440                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumber}" />
441
442                                                                 <p:outputLabel value="#{msg.LAST_HOUSE_NUMBER_HEADER}" title="#{msg.LAST_HOUSE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
443                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchLastHouseNumber}" />
444
445                                                                 <p:outputLabel value="#{msg.HOUSE_NUMBER_EXTENSION_HEADER}" title="#{msg.HOUSE_NUMBER_EXTENSION_OF_BRANCH_OFFICE_TITLE}" />
446                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchHouseNumberExtension}" />
447
448                                                                 <p:outputLabel value="#{msg.STORE_HEADER}" title="#{msg.STORE_OF_BRANCH_OFFICE_TITLE}" />
449                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchStore}" />
450
451                                                                 <p:outputLabel value="#{msg.SUITE_NUMBER_HEADER}" title="#{msg.SUITE_NUMBER_OF_BRANCH_OFFICE_TITLE}" />
452                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchSuiteNumber}" />
453
454                                                                 <p:outputLabel value="#{msg.DATA_ZIP_CODE}" title="#{msg.ZIP_CODE_OF_BRANCH_OFFICE_TITLE}" />
455                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchZipCode}" />
456
457                                                                 <p:outputLabel value="#{msg.CITY_HEADER}" title="#{msg.CITY_OF_BRANCH_OFFICE_TITLE}" />
458                                                                 <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchCity}" />
459
460                                                                 <p:outputLabel value="#{msg.COUNTRY_HEADER}" title="#{msg.COUNTRY_OF_BRANCH_OFFICE_TITLE}" />
461                                                                 <h:outputText value="#{beanHelper.renderCountry(branchOfficeListController.selectedBranchOffice.branchCountry)}" />
462                                                         </p:panelGrid>
463                                                 </p:tab>
464
465                                                 <p:tab title="#{msg.ADMIN_OPENING_TIMES_TAB_TITLE}">
466                                                         <core:outputOpeningTimesDataTable
467                                                                 id="branchOpeningTimeDetailList"
468                                                                 value="#{branchOfficeListController.selectedBranchOffice.branchOpeningTimes}"
469                                                                 rows="10"
470                                                                 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
471                                                                 emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
472                                                                 widgetVar="branchOpeningTimeDetailList"
473                                                                 headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
474                                                                 />
475                                                 </p:tab>
476                                         </p:tabView>
477                                 </p:outputPanel>
478                         </p:dialog>
479                 </h:form>
480
481                 <h:form>
482                         <p:panelGrid
483                                 columns="1"
484                                 layout="grid"
485                                 >
486                                 <f:facet name="header">
487                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_TITLE}" />
488                                 </f:facet>
489
490                                 <h:panelGroup styleClass="para" layout="block">
491                                         <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_MINIMUM_DATA}" />
492                                 </h:panelGroup>
493
494                                 <ui:include src="/WEB-INF/templates/admin/business/branch_office/admin_form_branch_office_data.tpl" />
495
496                                 <f:facet name="footer">
497                                         <p:panelGrid columns="2" layout="grid">
498                                                 <p:commandButton
499                                                         type="reset"
500                                                         value="#{msg.BUTTON_RESET_FORM}"
501                                                         />
502
503                                                 <p:commandButton
504                                                         type="submit"
505                                                         value="#{msg.BUTTON_ADMIN_ADD_BASIC_DATA}"
506                                                         action="#{adminBranchOfficeActionController.addBranchOffice()}"
507                                                         update="form-list-branch-offices:branchOfficeList"
508                                                         oncomplete="PF('branchOfficeList').filter()"
509                                                         />
510                                         </p:panelGrid>
511                                 </f:facet>
512                         </p:panelGrid>
513                 </h:form>
514
515                 <h:form id="form-list-branch-opening-time">
516                         <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_OPENING_TIMES_LEGEND}">
517                                 <core:outputOpeningTimesDataTable
518                                         id="branchOpeningTimeList"
519                                         value="#{adminBranchOfficeActionController.branchOpeningTimes}"
520                                         rows="10"
521                                         summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES}"
522                                         emptyMessage="#{msg.ADMIN_EMPTY_LIST_BRANCH_OFFICE_OPENING_TIMES}"
523                                         widgetVar="branchOpeningTimeList"
524                                         headerMessage="#{msg.ADMIN_LIST_BRANCH_OFFICE_OPENING_TIMES_HEADER}"
525                                         />
526                         </p:fieldset>
527                 </h:form>
528
529                 <h:form>
530                         <p:panelGrid
531                                 columns="1"
532                                 layout="grid"
533                                 >
534                                 <f:facet name="header">
535                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME_TITLE}" />
536                                 </f:facet>
537
538                                 <h:panelGroup styleClass="para" layout="block">
539                                         <h:outputText value="#{msg.ADMIN_ADD_OPENING_TIME_MINIMUM_DATA}" />
540                                 </h:panelGroup>
541
542                                 <ui:include src="/WEB-INF/templates/admin/business/branch_office/admin_form_branch_opening_time.tpl" />
543
544                                 <f:facet name="footer">
545                                         <p:panelGrid columns="2" layout="grid">
546                                                 <p:commandButton
547                                                         type="reset"
548                                                         value="#{msg.BUTTON_RESET_FORM}"
549                                                         />
550
551                                                 <p:commandButton
552                                                         type="submit"
553                                                         value="#{msg.BUTTON_ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME}"
554                                                         action="#{adminBranchOfficeActionController.addOpeningTime()}"
555                                                         update="form-list-branch-opening-time:branchOpeningTimeList"
556                                                         oncomplete=""
557                                                         />
558                                         </p:panelGrid>
559                                 </f:facet>
560                         </p:panelGrid>
561                 </h:form>
562         </ui:define>
563 </ui:composition>