]> 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 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:widgets="http://mxchange.org/jsf/core/widgets"
5         xmlns:f="http://xmlns.jcp.org/jsf/core"
6         xmlns:h="http://xmlns.jcp.org/jsf/html"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
8         xmlns:p="http://primefaces.org/ui">
9
10         <!--
11         @TODO: title="#{msg.ADMIN_BRANCH_OFFICE_DATA_LEGEND_TITLE}"
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_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="companyHeadQuarters" itemValue="#{companyEmployee}" itemLabel="#{companyEmployee.foo}" />
39                         </p:selectOneMenu>
40
41                         <p:outputLabel for="branchUserOwner" value="#{msg.ADMIN_ASSIGN_BRANCH_OFFICE_USER_OWNER}" />
42                         <p:selectOneMenu
43                                 id="branchUserOwner"
44                                 value="#{adminBranchOfficeController.branchUserOwner}"
45                                 filter="true"
46                                 filterMatchMode="contains"
47                                 >
48                                 <f:converter converterId="UserConverter" />
49                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
50                                 <f:selectItems value="#{userController.allUsers()}" var="branchUserOwner" itemValue="#{branchUserOwner}" itemLabel="#{branchUserOwner.userContact.contactFirstName} #{branchUserOwner.userContact.contactFamilyName} (#{branchUserOwner.userName})" />
51                         </p:selectOneMenu>
52
53                         <p:outputLabel for="branchEmailAddress" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_EMAIL_ADDRESS}" />
54                         <p:inputText styleClass="input" id="branchEmailAddress" size="20" maxlength="255" value="#{adminBranchOfficeController.branchEmailAddress}" validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}">
55                                 <f:validator validatorId="EmailAddressValidator" />
56                                 <f:attribute name="allowEmptyValue" value="true" />
57                         </p:inputText>
58
59                         <p:outputLabel for="landLineCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_PHONE_NUMBER}" />
60                         <widgets:inputLandLineNumberPanelGrid targetController="#{adminBranchOfficeController}" />
61
62                         <p:outputLabel for="faxCountry" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_FAX_NUMBER}" />
63                         <widgets:inputFaxNumberPanelGrid targetController="#{adminBranchOfficeController}" />
64
65                         <p:outputLabel for="branchNumber" value="#{msg.ADMIN_ENTER_BRANCH_OFFICE_NUMBER}" />
66                         <p:inputText styleClass="input" id="branchNumber" size="2" maxlength="10" value="#{adminBranchOfficeController.branchNumber}" />
67                 </p:panelGrid>
68         </p:fieldset>
69
70         <p:fieldset legend="#{msg.ADMIN_BRANCH_OFFICE_ADDRESS_LEGEND}">
71                 <p:panelGrid layout="grid" columns="2" columnClasses="ui-grid-col-4, ui-grid-col-8" styleClass="table table-full ui-noborder">
72                         <p:outputLabel for="branchStreet" value="#{msg.ADMIN_DATA_STREET_NAME}" />
73                         <p:inputText styleClass="input" id="branchStreet" size="20" maxlength="255" value="#{adminBranchOfficeController.branchStreet}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_STREET_NAME_REQUIRED}" />
74
75                         <p:outputLabel for="branchHouseNumber" value="#{msg.ADMIN_DATA_HOUSE_NUMBER}" />
76                         <p:inputText styleClass="input" 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}">
77                                 <f:validateLongRange for="branchHouseNumber" minimum="1" maximum="500" />
78                         </p:inputText>
79
80                         <p:outputLabel for="branchStore" value="#{msg.ADMIN_ENTER_DATA_STORE}" />
81                         <p:inputText styleClass="input" id="branchStore" size="3" maxlength="5" value="#{adminBranchOfficeController.branchStore}" validatorMessage="#{msg.ENTERED_STORE_INVALID}">
82                                 <f:validateLongRange for="branchStore" minimum="-5" maximum="200" />
83                         </p:inputText>
84
85                         <p:outputLabel for="branchSuiteNumber" value="#{msg.ADMIN_ENTER_DATA_SUITE_NUMBER}" />
86                         <p:inputText styleClass="input" id="branchSuiteNumber" size="3" maxlength="5" value="#{adminBranchOfficeController.branchSuiteNumber}" validatorMessage="#{msg.ENTERED_SUITE_NUMBER_INVALID}">
87                                 <f:validateLongRange for="branchSuiteNumber" minimum="1" maximum="500" />
88                         </p:inputText>
89
90                         <p:outputLabel for="branchZipCode" value="#{msg.ADMIN_DATA_ZIP_CODE}" />
91                         <p:inputText styleClass="input" id="branchZipCode" size="5" maxlength="6" value="#{adminBranchOfficeController.branchZipCode}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_ZIP_CODE_REQUIRED}">
92                                 <f:validateLongRange for="branchZipCode" minimum="1" maximum="99999" />
93                         </p:inputText>
94
95                         <p:outputLabel for="branchCity" value="#{msg.ADMIN_DATA_CITY}" />
96                         <p:inputText styleClass="input" id="branchCity" size="20" maxlength="255" value="#{adminBranchOfficeController.branchCity}" required="true" requiredMessage="#{msg.ADMIN_BRANCH_OFFICE_CITY_REQUIRED}" />
97
98                         <p:outputLabel for="branchCountry" value="#{msg.ADMIN_SELECT_COUNTRY}" />
99                         <widgets:outputCountrySelector id="branchCountry" value="#{adminBranchOfficeController.branchCountry}" />
100                 </p:panelGrid>
101         </p:fieldset>
102 </ui:composition>