]> 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                                 <f:converter converterId="BasicCompanyDataConverter" />
31                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
32                                 <f:selectItems value="#{basicDataListController.allBasicData}" var="basicData" itemValue="#{basicData}" itemLabel="#{basicData.companyName}" />
33                         </p:selectOneMenu>
34
35                         <p:outputLabel for="branchContactEmployee" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_CONTACT_EMPLOYEE}" />
36                         <p:selectOneMenu
37                                 id="branchContactEmployee"
38                                 value="#{adminBranchOfficeController.branchContactEmployee}"
39                                 filter="true"
40                                 filterMatchMode="contains"
41                                 >
42                                 <f:converter converterId="EmployeeConverter" />
43                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
44                                 <f:selectItems value="#{employeeController.allEmployees()}" var="companyEmployee" itemValue="#{companyEmployee}" itemLabel="#{beanHelper.renderEmployee(companyEmployee)}" />
45                         </p:selectOneMenu>
46
47                         <p:outputLabel for="branchOwner" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_OWNER}" />
48                         <p:selectOneMenu
49                                 id="branchOwner"
50                                 value="#{adminBranchOfficeController.branchOwner}"
51                                 filter="true"
52                                 filterMatchMode="contains"
53                                 >
54                                 <f:converter converterId="EmployeeConverter" />
55                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
56                                 <f:selectItems value="#{employeeController.allEmployees()}" var="companyEmployee" itemValue="#{companyEmployee}" itemLabel="#{beanHelper.renderEmployee(companyEmployee)}" />
57                         </p:selectOneMenu>
58
59                         <p:outputLabel for="branchUserOwner" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_USER_OWNER}" />
60                         <p:selectOneMenu
61                                 id="branchUserOwner"
62                                 value="#{adminBranchOfficeController.branchUserOwner}"
63                                 filter="true"
64                                 filterMatchMode="contains"
65                                 >
66                                 <f:converter converterId="UserConverter" />
67                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
68                                 <f:selectItems value="#{userController.allUsers()}" var="branchUserOwner" itemValue="#{branchUserOwner}" itemLabel="#{branchUserOwner.userContact.contactFirstName} #{branchUserOwner.userContact.contactFamilyName} (#{branchUserOwner.userName})" />
69                         </p:selectOneMenu>
70
71                         <p:outputLabel for="branchEmailAddress" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_EMAIL_ADDRESS}" />
72                         <p:inputText
73                                 id="branchEmailAddress"
74                                 size="40"
75                                 maxlength="255"
76                                 value="#{adminBranchOfficeController.branchEmailAddress}"
77                                 validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}"
78                                 >
79                                 <validator:branchOfficeEmailAddressValidator allowEmptyRequiredData="true" />
80                         </p:inputText>
81
82                         <p:outputLabel for="landLineCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_LAND_LINE_NUMBER}" />
83                         <core:inputLandLineNumberPanelGrid targetController="#{adminBranchOfficeController}" />
84
85                         <p:outputLabel for="faxCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_FAX_NUMBER}" />
86                         <core:inputFaxNumberPanelGrid targetController="#{adminBranchOfficeController}" />
87
88                         <p:outputLabel for="branchNumber" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_NUMBER}" />
89                         <p:inputText id="branchNumber" size="2" maxlength="10" value="#{adminBranchOfficeController.branchNumber}" />
90                 </p:panelGrid>
91         </p:fieldset>
92
93         <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_LEGEND}">
94                 <p:panelGrid
95                         layout="grid"
96                         columns="2"
97                         columnClasses="ui-grid-col-4,ui-grid-col-8"
98                         styleClass="ui-noborder"
99                         >
100                         <p:outputLabel for="branchStreet" value="#{msg.ADMIN_DATA_STREET_NAME}" />
101                         <p:inputText id="branchStreet" size="20" maxlength="255" value="#{adminBranchOfficeController.branchStreet}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_STREET_NAME_REQUIRED}" />
102
103                         <p:outputLabel for="branchHouseNumber" value="#{msg.ADMIN_DATA_HOUSE_NUMBER}" />
104                         <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}">
105                                 <f:validateLongRange minimum="1" maximum="500" />
106                         </p:inputText>
107
108                         <p:outputLabel for="branchLastHouseNumber" value="#{msg.ADMIN_DATA_LAST_HOUSE_NUMBER}" />
109                         <p:inputText id="branchLastHouseNumber" size="3" maxlength="5" value="#{adminBranchOfficeController.branchLastHouseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
110                                 <f:validateLongRange minimum="1" maximum="500" />
111                         </p:inputText>
112
113                         <p:outputLabel for="branchHouseNumberExtension" value="#{msg.ADMIN_DATA_HOUSE_NUMBER_EXTENSION}" />
114                         <p:inputText id="branchHouseNumberExtension" size="1" maxlength="255" value="#{adminBranchOfficeController.branchHouseNumberExtension}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}" />
115
116                         <p:outputLabel for="branchStore" value="#{msg.ADMIN_ENTER_DATA_STORE}" />
117                         <p:inputText id="branchStore" size="3" maxlength="5" value="#{adminBranchOfficeController.branchStore}" validatorMessage="#{msg.ENTERED_STORE_INVALID}">
118                                 <f:validateLongRange minimum="-5" maximum="200" />
119                         </p:inputText>
120
121                         <p:outputLabel for="branchSuiteNumber" value="#{msg.ADMIN_ENTER_DATA_SUITE_NUMBER}" />
122                         <p:inputText id="branchSuiteNumber" size="3" maxlength="5" value="#{adminBranchOfficeController.branchSuiteNumber}" validatorMessage="#{msg.ENTERED_SUITE_NUMBER_INVALID}">
123                                 <f:validateLongRange minimum="1" maximum="500" />
124                         </p:inputText>
125
126                         <p:outputLabel for="branchZipCode" value="#{msg.ADMIN_DATA_ZIP_CODE}" />
127                         <p:inputText id="branchZipCode" size="5" maxlength="6" value="#{adminBranchOfficeController.branchZipCode}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_ZIP_CODE_REQUIRED}">
128                                 <f:validateLongRange minimum="1" maximum="99999" />
129                         </p:inputText>
130
131                         <p:outputLabel for="branchCity" value="#{msg.ADMIN_DATA_CITY}" />
132                         <p:inputText id="branchCity" size="20" maxlength="255" value="#{adminBranchOfficeController.branchCity}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_CITY_REQUIRED}" />
133
134                         <p:outputLabel for="branchCountry" value="#{msg.ADMIN_SELECT_COUNTRY}" />
135                         <core:outputCountrySelector id="branchCountry" value="#{adminBranchOfficeController.branchCountry}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_COUNTRY_REQUIRED}" />
136                 </p:panelGrid>
137         </p:fieldset>
138 </ui:composition>