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