]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / admin / branch_office / admin_form_branch_office_data.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3 @TODO: title="#{msg.ADMIN_BRANCH_OFFICE_DATA_LEGEND_TITLE}"
4 -->
5 <ui:composition
6         xmlns="http://www.w3.org/1999/xhtml"
7         xmlns:core="http://mxchange.org/jsf/core/widgets"
8         xmlns:validator="http://mxchange.org/jsf/core/validators"
9         xmlns:f="http://xmlns.jcp.org/jsf/core"
10         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
11         xmlns:p="http://primefaces.org/ui"
12         >
13
14         <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_DATA_LEGEND}">
15                 <p:panelGrid
16                         layout="grid"
17                         columns="2"
18                         columnClasses="ui-grid-col-4,ui-grid-col-8"
19                         styleClass="ui-noborder"
20                         >
21                         <p:outputLabel for="branchCompany" value="#{msg.ADMIN_ASSIGN_BASIC_DATA_BRANCH_OFFICE}" />
22                         <p:selectOneMenu
23                                 id="branchCompany"
24                                 value="#{adminBranchOfficeController.branchCompany}"
25                                 filter="true"
26                                 filterMatchMode="contains"
27                                 required="true"
28                                 requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_REQUIRED}"
29                                 >
30
31                                 <f:converter converterId="BasicCompanyDataConverter" />
32
33                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
34
35                                 <f:selectItems
36                                         value="#{basicDataListController.allBasicData}"
37                                         var="basicData"
38                                         itemValue="#{basicData}"
39                                         itemLabel="#{beanHelper.renderBasicData(basicData, true)}"
40                                         />
41                         </p:selectOneMenu>
42
43                         <p:outputLabel for="branchContactEmployee" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_CONTACT_EMPLOYEE}" />
44                         <p:selectOneMenu
45                                 id="branchContactEmployee"
46                                 value="#{adminBranchOfficeController.branchContactEmployee}"
47                                 filter="true"
48                                 filterMatchMode="contains"
49                                 >
50
51                                 <f:converter converterId="EmployeeConverter" />
52
53                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
54
55                                 <f:selectItems
56                                         value="#{employeeController.allEmployees()}"
57                                         var="companyEmployee"
58                                         itemValue="#{companyEmployee}"
59                                         itemLabel="#{beanHelper.renderEmployee(companyEmployee)}"
60                                         />
61                         </p:selectOneMenu>
62
63                         <p:outputLabel for="branchOwner" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_OWNER}" />
64                         <p:selectOneMenu
65                                 id="branchOwner"
66                                 value="#{adminBranchOfficeController.branchOwner}"
67                                 filter="true"
68                                 filterMatchMode="contains"
69                                 >
70
71                                 <f:converter converterId="EmployeeConverter" />
72
73                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
74
75                                 <f:selectItems
76                                         value="#{employeeController.allEmployees()}"
77                                         var="companyEmployee"
78                                         itemValue="#{companyEmployee}"
79                                         itemLabel="#{beanHelper.renderEmployee(companyEmployee)}"
80                                         />
81                         </p:selectOneMenu>
82
83                         <p:outputLabel for="branchUserOwner" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_USER_OWNER}" />
84                         <p:selectOneMenu
85                                 id="branchUserOwner"
86                                 value="#{adminBranchOfficeController.branchUserOwner}"
87                                 filter="true"
88                                 filterMatchMode="contains"
89                                 >
90
91                                 <f:converter converterId="UserConverter" />
92
93                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
94
95                                 <f:selectItems
96                                         value="#{userController.allUsers()}"
97                                         var="branchUserOwner"
98                                         itemValue="#{branchUserOwner}"
99                                         itemLabel="#{beanHelper.renderContact(branchUserOwner.userContact)} (#{branchUserOwner.userName})"
100                                         />
101                         </p:selectOneMenu>
102
103                         <p:outputLabel for="branchEmailAddress" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_EMAIL_ADDRESS}" />
104                         <p:inputText
105                                 id="branchEmailAddress"
106                                 size="40"
107                                 maxlength="255"
108                                 value="#{adminBranchOfficeController.branchEmailAddress}"
109                                 validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}"
110                                 >
111                                 <validator:branchOfficeEmailAddressValidator allowEmptyRequiredData="true" />
112                         </p:inputText>
113
114                         <p:outputLabel for="landLineCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_LAND_LINE_NUMBER}" />
115                         <core:inputLandLineNumberPanelGrid targetController="#{adminBranchOfficeController}" />
116
117                         <p:outputLabel for="faxCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_FAX_NUMBER}" />
118                         <core:inputFaxNumberPanelGrid targetController="#{adminBranchOfficeController}" />
119
120                         <p:outputLabel for="branchNumber" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_NUMBER}" />
121                         <p:inputText id="branchNumber" size="2" maxlength="10" value="#{adminBranchOfficeController.branchNumber}" />
122                 </p:panelGrid>
123         </p:fieldset>
124
125         <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_LEGEND}">
126                 <p:panelGrid
127                         layout="grid"
128                         columns="2"
129                         columnClasses="ui-grid-col-4,ui-grid-col-8"
130                         styleClass="ui-noborder"
131                         >
132                         <p:outputLabel for="branchStreet" value="#{msg.ADMIN_DATA_STREET_NAME}" />
133                         <p:inputText id="branchStreet" size="20" maxlength="255" value="#{adminBranchOfficeController.branchStreet}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_STREET_NAME_REQUIRED}" />
134
135                         <p:outputLabel for="branchHouseNumber" value="#{msg.ADMIN_DATA_HOUSE_NUMBER}" />
136                         <p:inputText id="branchHouseNumber" size="3" maxlength="5" value="#{adminBranchOfficeController.branchHouseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_HOUSE_NUMBER_REQUIRED}">
137                                 <f:validateLongRange minimum="1" maximum="500" />
138                         </p:inputText>
139
140                         <p:outputLabel for="branchLastHouseNumber" value="#{msg.ADMIN_DATA_LAST_HOUSE_NUMBER}" />
141                         <p:inputText id="branchLastHouseNumber" size="3" maxlength="5" value="#{adminBranchOfficeController.branchLastHouseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
142                                 <f:validateLongRange minimum="1" maximum="500" />
143                         </p:inputText>
144
145                         <p:outputLabel for="branchHouseNumberExtension" value="#{msg.ADMIN_DATA_HOUSE_NUMBER_EXTENSION}" />
146                         <p:inputText id="branchHouseNumberExtension" size="1" maxlength="255" value="#{adminBranchOfficeController.branchHouseNumberExtension}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}" />
147
148                         <p:outputLabel for="branchStore" value="#{msg.ADMIN_ENTER_DATA_STORE}" />
149                         <p:inputText id="branchStore" size="3" maxlength="5" value="#{adminBranchOfficeController.branchStore}" validatorMessage="#{msg.ENTERED_STORE_INVALID}">
150                                 <f:validateLongRange minimum="-5" maximum="200" />
151                         </p:inputText>
152
153                         <p:outputLabel for="branchSuiteNumber" value="#{msg.ADMIN_ENTER_DATA_SUITE_NUMBER}" />
154                         <p:inputText id="branchSuiteNumber" size="3" maxlength="5" value="#{adminBranchOfficeController.branchSuiteNumber}" validatorMessage="#{msg.ENTERED_SUITE_NUMBER_INVALID}">
155                                 <f:validateLongRange minimum="1" maximum="500" />
156                         </p:inputText>
157
158                         <p:outputLabel for="branchZipCode" value="#{msg.ADMIN_DATA_ZIP_CODE}" />
159                         <p:inputText id="branchZipCode" size="5" maxlength="6" value="#{adminBranchOfficeController.branchZipCode}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_ZIP_CODE_REQUIRED}">
160                                 <f:validateLongRange minimum="1" maximum="99999" />
161                         </p:inputText>
162
163                         <p:outputLabel for="branchCity" value="#{msg.ADMIN_DATA_CITY}" />
164                         <p:inputText id="branchCity" size="20" maxlength="255" value="#{adminBranchOfficeController.branchCity}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_CITY_REQUIRED}" />
165
166                         <p:outputLabel for="branchCountry" value="#{msg.ADMIN_SELECT_COUNTRY}" />
167                         <core:outputCountrySelector id="branchCountry" value="#{adminBranchOfficeController.branchCountry}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_COUNTRY_REQUIRED}" />
168                 </p:panelGrid>
169         </p:fieldset>
170 </ui:composition>