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:f="http://xmlns.jcp.org/jsf/core"
9 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
10 xmlns:p="http://primefaces.org/ui">
12 <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_DATA_LEGEND}">
13 <p:panelGrid layout="grid" columns="2" columnClasses="ui-grid-col-4,ui-grid-col-8" styleClass="table table-full ui-noborder">
14 <p:outputLabel for="branchCompany" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE}" />
17 value="#{adminBranchOfficeController.branchCompany}"
19 filterMatchMode="contains"
21 requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_REQUIRED}"
23 <f:converter converterId="BasicCompanyDataConverter" />
24 <f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
25 <f:selectItems value="#{basicCompanyDataController.allBasicData()}" var="basicData" itemValue="#{basicData}" itemLabel="#{basicData.companyName}" />
28 <p:outputLabel for="branchContactEmployee" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_CONTACT_EMPLOYEE}" />
30 id="branchContactEmployee"
31 value="#{adminBranchOfficeController.branchContactEmployee}"
33 filterMatchMode="contains"
35 <f:converter converterId="EmployeeConverter" />
36 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
37 <f:selectItems value="#{employeeController.allEmployees()}" var="companyHeadQuarters" itemValue="#{companyEmployee}" itemLabel="#{companyEmployee.foo}" />
40 <p:outputLabel for="branchUserOwner" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_USER_OWNER}" />
43 value="#{adminBranchOfficeController.branchUserOwner}"
45 filterMatchMode="contains"
47 <f:converter converterId="UserConverter" />
48 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
49 <f:selectItems value="#{userController.allUsers()}" var="branchUserOwner" itemValue="#{branchUserOwner}" itemLabel="#{branchUserOwner.userContact.contactFirstName} #{branchUserOwner.userContact.contactFamilyName} (#{branchUserOwner.userName})" />
52 <p:outputLabel for="branchEmailAddress" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_EMAIL_ADDRESS}" />
53 <p:inputText id="branchEmailAddress" size="20" maxlength="255" value="#{adminBranchOfficeController.branchEmailAddress}" validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}">
54 <f:validator validatorId="EmailAddressValidator" />
55 <f:attribute name="allowEmptyValue" value="true" />
58 <p:outputLabel for="landLineCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_PHONE_NUMBER}" />
59 <core:inputLandLineNumberPanelGrid targetController="#{adminBranchOfficeController}" />
61 <p:outputLabel for="faxCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_FAX_NUMBER}" />
62 <core:inputFaxNumberPanelGrid targetController="#{adminBranchOfficeController}" />
64 <p:outputLabel for="branchNumber" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_NUMBER}" />
65 <p:inputText id="branchNumber" size="2" maxlength="10" value="#{adminBranchOfficeController.branchNumber}" />
69 <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_LEGEND}">
70 <p:panelGrid layout="grid" columns="2" columnClasses="ui-grid-col-4,ui-grid-col-8" styleClass="table table-full ui-noborder">
71 <p:outputLabel for="branchStreet" value="#{msg.ADMIN_DATA_STREET_NAME}" />
72 <p:inputText id="branchStreet" size="20" maxlength="255" value="#{adminBranchOfficeController.branchStreet}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_STREET_NAME_REQUIRED}" />
74 <p:outputLabel for="branchHouseNumber" value="#{msg.ADMIN_DATA_HOUSE_NUMBER}" />
75 <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}">
76 <f:validateLongRange for="branchHouseNumber" minimum="1" maximum="500" />
79 <p:outputLabel for="branchStore" value="#{msg.ADMIN_ENTER_DATA_STORE}" />
80 <p:inputText id="branchStore" size="3" maxlength="5" value="#{adminBranchOfficeController.branchStore}" validatorMessage="#{msg.ENTERED_STORE_INVALID}">
81 <f:validateLongRange for="branchStore" minimum="-5" maximum="200" />
84 <p:outputLabel for="branchSuiteNumber" value="#{msg.ADMIN_ENTER_DATA_SUITE_NUMBER}" />
85 <p:inputText id="branchSuiteNumber" size="3" maxlength="5" value="#{adminBranchOfficeController.branchSuiteNumber}" validatorMessage="#{msg.ENTERED_SUITE_NUMBER_INVALID}">
86 <f:validateLongRange for="branchSuiteNumber" minimum="1" maximum="500" />
89 <p:outputLabel for="branchZipCode" value="#{msg.ADMIN_DATA_ZIP_CODE}" />
90 <p:inputText id="branchZipCode" size="5" maxlength="6" value="#{adminBranchOfficeController.branchZipCode}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_ZIP_CODE_REQUIRED}">
91 <f:validateLongRange for="branchZipCode" minimum="1" maximum="99999" />
94 <p:outputLabel for="branchCity" value="#{msg.ADMIN_DATA_CITY}" />
95 <p:inputText id="branchCity" size="20" maxlength="255" value="#{adminBranchOfficeController.branchCity}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_CITY_REQUIRED}" />
97 <p:outputLabel for="branchCountry" value="#{msg.ADMIN_SELECT_COUNTRY}" />
98 <core:outputCountrySelector id="branchCountry" value="#{adminBranchOfficeController.branchCountry}" />