For the moment in trunk the Link Geos screen use a standard multiple dropdown. It's not easy to use (see why at http://www.ryancramer.com/journal/entries/select_multiple). In the jQuery branch I have used the asmselect plugin, much easier for end users. Actually I'm not totally satisfied by it either. It's a beta and seems to be freezed. Also the way the field is shown is not flexible enough. It's a fixed size area and I tried to work around. I could be done better though. I will have a look. Sascha thought we could use jQuery.ui.sortable but I don't think it exactly corresponds to the feature needed. I have also changed some labels names and removed/grouped some requests (only in common now) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996658 13f79535-47bb-0310-9956-ffa450edef68
90 lines
4.9 KiB
XML
90 lines
4.9 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="FindGeo" id="FindGeo" target="${currentUrl}" extends="LookupGeo" extends-resource="component://common/widget/LookupForms.xml"/>
|
|
|
|
<form name="ListGeos" extends-resource="component://common/widget/LookupForms.xml" extends="listLookupGeo" paginate-target="${currentUrl}"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar" separate-columns="true" >
|
|
<field name="geoId" widget-style="buttontext" title="${uiLabelMap.CommonGeoId}">
|
|
<hyperlink also-hidden="false" target-type="plain" description="${geoId}" target="EditGeo">
|
|
<parameter param-name="geoId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="wellKnownText" title="${uiLabelMap.CommonGeoWellKnownText}"><display/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink target="deleteGeo" description="${uiLabelMap.CommonRemove}">
|
|
<parameter param-name="geoId"/>
|
|
<parameter param-name="noConditionFind" value="Y"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="noConditionFind"><hidden value="N"/></field>
|
|
</form>
|
|
|
|
<form name="EditGeo" type="single" target="updateGeo" title="" default-map-name="geo"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<alt-target use-when="geo==null" target="createGeo"/>
|
|
<field name="geoId" title="${uiLabelMap.CommonGeoId}"><text/></field>
|
|
<field name="geoTypeId" title="${uiLabelMap.CommonGeoTypeId}">
|
|
<drop-down allow-empty="true">
|
|
<entity-options key-field-name="geoTypeId" entity-name="GeoType" description="${description}">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="geoName" title="${uiLabelMap.CommonGeoName}"><text/></field>
|
|
<field name="geoCode" title="${uiLabelMap.CommonGeoCode}"><text/></field>
|
|
<field name="geoSecCode" title="${uiLabelMap.CommonGeoSecCode}"><text/></field>
|
|
<field name="abbreviation" title="${uiLabelMap.CommonGeoAbbr}"><text/></field>
|
|
<field name="wellKnownText" title="${uiLabelMap.CommonGeoWellKnownText}"><textarea/></field>
|
|
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="LinkGeos" type="single" target="linkGeos" title="" header-row-style="header-row" default-table-style="basic-table">
|
|
<field name="geoIds" title="${uiLabelMap.CommonGeos}">
|
|
<drop-down allow-multiple="true">
|
|
<entity-options entity-name="Geo" key-field-name="geoId" description="${geoName}">
|
|
<!--entity-constraint name="geoTypeId" operator="equals" value="COUNTRY"/--><!-- useful at least to test, else it's long... -->
|
|
<entity-order-by field-name="geoName"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="geoAssocTypeId" title="${uiLabelMap.CommonGeoAssocTypeId}">
|
|
<drop-down allow-empty="true">
|
|
<entity-options key-field-name="geoAssocTypeId" entity-name="GeoAssocType" description="${description}">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="geoId" title="${uiLabelMap.CommonGeo}">
|
|
<drop-down>
|
|
<entity-options entity-name="Geo" key-field-name="geoId" description="${geoName}">
|
|
<entity-order-by field-name="geoName"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit" ><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
</forms>
|