git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68
44 lines
2.0 KiB
Plaintext
44 lines
2.0 KiB
Plaintext
<#--
|
|
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.
|
|
-->
|
|
|
|
<ul>
|
|
<#if autocompleteOptions?exists>
|
|
<#assign displayReturnField = Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("widget.properties", "widget.autocompleter.displayReturnField")>
|
|
<#list autocompleteOptions as autocompleteOption>
|
|
<#assign displayString = ""/>
|
|
<#assign returnField = ""/>
|
|
<#-- <#list autocompleteOption.keySet() as key> instead use the field order of display fields -->
|
|
<#list context.displayFieldsSet as key>
|
|
<#assign field = autocompleteOption.get(key)?if_exists>
|
|
<#if field?has_content>
|
|
<#if (key == context.returnField)>
|
|
<#assign returnField = field/>
|
|
<#else>
|
|
<#assign displayString = displayString + field + " ">
|
|
</#if>
|
|
</#if>
|
|
</#list>
|
|
<#if ("Y" == displayReturnField)>
|
|
<#assign displayString = displayString + "[" + returnField + "]">
|
|
</#if>
|
|
<li id="${returnField}"><#if (displayString?trim?has_content )>${displayString?trim}<#else>${returnField}</#if></li>
|
|
</#list>
|
|
</#if>
|
|
</ul>
|