1. Changed a couple of incorrect field names 2. Changed the state and country dropdowns to display geoName - geoId, much easier to use 3. Removed the required elements from email, as it isn't (and shouldn't be) required git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662125 13f79535-47bb-0310-9956-ffa450edef68
69 lines
5.1 KiB
XML
69 lines
5.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
<form name="AddEmployee" type="single" target="createEmployee"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<field name="salutation" title="${uiLabelMap.CommonTitle}"><text size="10" maxlength="30"/></field>
|
|
<field name="firstName" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="middleName" title="${uiLabelMap.PartyMiddleInitial}"><text size="4" maxlength="4"/></field>
|
|
<field name="lastName" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="partyIdFrom" title="${uiLabelMap.OrderOrderEntryInternalOrganization}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="PartyRoleNameDetail" key-field-name="partyId" description="${groupName}">
|
|
<entity-constraint name="roleTypeId" operator="equals" value="INTERNAL_ORGANIZATIO"/>
|
|
</entity-options>
|
|
<option key="null" description="-----"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="fromDate" title="${uiLabelMap.WorkEffortEstimatedStartDate}"><date-time/></field>
|
|
<field name="permanentAddress" title="${uiLabelMap.OrderAddress}" title-area-style="group-label"><display description=" " also-hidden="false"/></field>
|
|
<field name="postalAddContactMechPurpTypeId"><hidden value="PRIMARY_LOCATION"/></field>
|
|
<field name="address1" title="${uiLabelMap.CommonAddress1}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="30" maxlength="60"/></field>
|
|
<field name="address2" title="${uiLabelMap.CommonAddress2}"><text size="30" maxlength="60"/></field>
|
|
<field name="city" title="${uiLabelMap.CommonCity}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="30" maxlength="60"/></field>
|
|
<field name="stateProvinceGeoId" title="${uiLabelMap.CommonState}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="Geo" key-field-name="geoId" description="${geoName} - ${geoId}">
|
|
<entity-constraint name="geoTypeId" operator="in" value="STATE,PROVINCE"/>
|
|
<entity-order-by field-name="geoName"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="postalCode" title="${uiLabelMap.CommonZipPostalCode}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="10" maxlength="30"/></field>
|
|
<field name="countryGeoId" title="${uiLabelMap.CommonCountry}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required">
|
|
<drop-down allow-empty="false" no-current-selected-key="${defaultCountryGeoId}">
|
|
<entity-options entity-name="Geo" key-field-name="geoId" description="${geoName} - ${geoId}">
|
|
<entity-constraint name="geoTypeId" value="COUNTRY"/>
|
|
<entity-order-by field-name="geoName"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="phoneTitle" title="${uiLabelMap.PartyPrimaryPhone}" title-area-style="group-label"><display/></field>
|
|
<field name="countryCode" title="${uiLabelMap.PartyCountryCode}"><text size="4" maxlength="10"/></field>
|
|
<field name="areaCode" title="${uiLabelMap.PartyAreaCode}"><text size="4" maxlength="10"/></field>
|
|
<field name="contactNumber" title="${uiLabelMap.PartyPhoneNumber}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="15" maxlength="15"/></field>
|
|
<field name="extension" title="${uiLabelMap.PartyContactExt}"><text size="6" maxlength="10"/></field>
|
|
<field name="emailAddressTitle" title="${uiLabelMap.PartyEmailAddress}" title-area-style="group-label"><display/></field>
|
|
<field name="emailAddress" title="${uiLabelMap.CommonEmail}"><text size="50" maxlength="60"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
</forms> |