1 <?xml version="1.0" encoding="UTF-8" ?>
3 @TODO: title="#{msg.ADMIN_BASIC_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:h="http://xmlns.jcp.org/jsf/html"
11 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
12 xmlns:p="http://primefaces.org/ui">
14 <h:panelGroup styleClass="para" layout="block">
15 <p:fieldset legend="#{msg.ADMIN_BASIC_DATA_LEGEND}">
16 <p:panelGrid columns="2" columnClasses="ui-grid-col-4,ui-grid-col-8" styleClass="table table-full ui-noborder">
17 <p:outputLabel for="companyName" value="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME}" />
20 value="#{adminBasicCompanyDataController.companyName}"
24 requiredMessage="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_REQUIRED}"
26 <f:validator validatorId="BasicDataCompanyNameValidator" />
27 <f:attribute name="checkExisting" value="false" />
30 <p:outputLabel for="companyEmailAddress" value="#{msg.ADMIN_BASIC_DATA_COMPANY_EMAIL_ADDRESS}" />
31 <p:inputText id="companyEmailAddress" size="20" maxlength="255" value="#{adminBasicCompanyDataController.companyEmailAddress}" validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}">
32 <validator:basicDataEmailAddressValidator allowEmptyRequiredData="true" />
35 <p:outputLabel for="companyLogo" value="#{msg.ADMIN_SELECT_BASIC_DATA_COMPANY_LOGO}" />
36 <core:outputMessageBox id="companyLogo" message="#{msg.ADMIN_FEATURE_UNFINISHED_WARNING}" boxStyleClass="message-full" messageStyleClass="alert-warning" />
38 <p:outputLabel for="companyTaxNumber" value="#{msg.ADMIN_BASIC_DATA_COMPANY_TAX_NUMBER}" />
39 <p:inputText id="companyTaxNumber" size="30" maxlength="200" value="#{adminBasicCompanyDataController.companyTaxNumber}" />
41 <p:outputLabel for="companyWebsiteUrl" value="#{msg.ADMIN_BASIC_DATA_COMPANY_WEBSITE_URL}" />
42 <p:inputText id="companyWebsiteUrl" size="30" maxlength="200" value="#{adminBasicCompanyDataController.companyWebsiteUrl}" validatorMessage="#{msg.URL_NOT_MATCHING_REGULAR_EXPRESSION}">
43 <validator:urlValidator allowEmptyRequiredData="true" />
46 <p:outputLabel for="companyUserOwner" value="#{msg.ADMIN_SELECT_BASIC_DATA_COMPANY_USER_OWNER}" />
49 value="#{adminBasicCompanyDataController.companyUserOwner}"
51 filterMatchMode="contains"
53 <f:converter converterId="UserConverter" />
54 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
55 <f:selectItems value="#{userController.allUsers()}" var="companyUserOwner" itemValue="#{companyUserOwner}" itemLabel="#{companyUserOwner.userContact.contactFirstName} #{companyUserOwner.userContact.contactFamilyName} (#{companyUserOwner.userName})" />
58 <p:outputLabel for="companyContactEmployee" value="#{msg.ADMIN_SELECT_BASIC_DATA_COMPANY_CONTACT_EMPLOYEE}" />
60 id="companyContactEmployee"
61 value="#{adminBasicCompanyDataController.companyContactEmployee}"
63 filterMatchMode="contains"
65 <f:converter converterId="EmployeeConverter" />
66 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
67 <f:selectItems value="#{employeeController.allEmployees()}" var="companyEmployee" itemValue="#{companyEmployee}" itemLabel="#{beanHelper.renderEmployee(companyEmployee)}" />
70 <p:outputLabel for="companyFounder" value="#{msg.ADMIN_SELECT_BASIC_DATA_COMPANY_FOUNDER}" />
73 value="#{adminBasicCompanyDataController.companyFounder}"
75 filterMatchMode="contains"
77 <f:converter converterId="EmployeeConverter" />
78 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
79 <f:selectItems value="#{employeeController.allEmployees()}" var="companyEmployee" itemValue="#{companyEmployee}" itemLabel="#{beanHelper.renderEmployee(companyEmployee)}" />
82 <p:outputLabel for="companyHeadquarter" value="#{msg.ADMIN_SELECT_BASIC_DATA_COMPANY_HEADQUARTER}" />
84 id="companyHeadquarter"
85 value="#{adminBasicCompanyDataController.companyHeadQuarter}"
87 filterMatchMode="contains"
89 <f:converter converterId="HeadquarterConverter" />
90 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
91 <f:selectItems value="#{headquarterController.allHeadquarter()}" var="headquarter" itemValue="#{headquarter}" itemLabel="#{beanHelper.renderHeadquarter(headquarter)}" />
94 <p:outputLabel for="landLineCountry" value="#{msg.ADMIN_BASIC_DATA_PHONE_NUMBER}" />
95 <core:inputLandLineNumberPanelGrid targetController="#{adminBasicCompanyDataController}" />
97 <p:outputLabel for="faxCountry" value="#{msg.ADMIN_BASIC_DATA_FAX_NUMBER}" />
98 <core:inputFaxNumberPanelGrid targetController="#{adminBasicCompanyDataController}" />
100 <p:outputLabel for="companyComments" value="#{msg.ADMIN_BASIC_DATA_COMPANY_COMMENTS}" />
103 value="#{adminBasicCompanyDataController.companyComments}"