1 <?xml version="1.0" encoding="UTF-8" ?>
3 @TODO: title="#{msg.ADMIN_BRANCH_OFFICE_DATA_LEGEND_TITLE}"
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"
14 <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_DATA_LEGEND}">
18 columnClasses="ui-grid-col-4,ui-grid-col-8"
19 styleClass="ui-noborder"
21 <p:outputLabel for="branchCompany" value="#{msg.ADMIN_ASSIGN_BASIC_DATA_BRANCH_OFFICE}" />
24 value="#{adminBranchOfficeController.branchCompany}"
26 filterMatchMode="contains"
28 requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_REQUIRED}"
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}" />
35 <p:outputLabel for="branchContactEmployee" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_CONTACT_EMPLOYEE}" />
37 id="branchContactEmployee"
38 value="#{adminBranchOfficeController.branchContactEmployee}"
40 filterMatchMode="contains"
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)}" />
47 <p:outputLabel for="branchOwner" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_OWNER}" />
50 value="#{adminBranchOfficeController.branchOwner}"
52 filterMatchMode="contains"
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)}" />
59 <p:outputLabel for="branchUserOwner" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_USER_OWNER}" />
62 value="#{adminBranchOfficeController.branchUserOwner}"
64 filterMatchMode="contains"
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})" />
71 <p:outputLabel for="branchEmailAddress" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_EMAIL_ADDRESS}" />
73 id="branchEmailAddress"
76 value="#{adminBranchOfficeController.branchEmailAddress}"
77 validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}"
79 <validator:branchOfficeEmailAddressValidator allowEmptyRequiredData="true" />
82 <p:outputLabel for="landLineCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_LAND_LINE_NUMBER}" />
83 <core:inputLandLineNumberPanelGrid targetController="#{adminBranchOfficeController}" />
85 <p:outputLabel for="faxCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_FAX_NUMBER}" />
86 <core:inputFaxNumberPanelGrid targetController="#{adminBranchOfficeController}" />
88 <p:outputLabel for="branchNumber" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_NUMBER}" />
89 <p:inputText id="branchNumber" size="2" maxlength="10" value="#{adminBranchOfficeController.branchNumber}" />
93 <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_LEGEND}">
97 columnClasses="ui-grid-col-4,ui-grid-col-8"
98 styleClass="ui-noborder"
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}" />
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" />
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" />
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}" />
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" />
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" />
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" />
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}" />
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}" />