#--
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.
-->
<#macro renderField text><#if text?exists>${text}#if>#macro>
<#macro renderDisplayField idName description class alert>
<#if class?has_content || alert=="true">><#rt/>#if>
<#if description?has_content>${description}<#else> #if><#if class?has_content || alert=="true">#if>
#macro>
<#macro renderHyperlinkField>#macro>
<#macro renderTextField name className alert value textSize maxlength id event action clientAutocomplete ajaxUrl ajaxEnabled>
<@renderClass className alert />
<#if value?has_content> value="${value}"#if><#if textSize?has_content> size="${textSize}"#if><#if maxlength?has_content> maxlength="${maxlength}"#if><#rt/>
<#if id?has_content> id="${id}"#if><#if event?has_content && action?has_content>${event}="${action}"#if><#if clientAutocomplete?has_content && clientAutocomplete=="false"> autocomplete="off"#if>/><#rt/>
<#if ajaxEnabled?has_content && ajaxEnabled>
#if>
#macro>
<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble buttons>
<#if cols?has_content> cols="${cols}"#if><#if rows?has_content> rows="${rows}"#if><#if id?has_content> id="${id}"#if><#if readonly?has_content> ${readonly}#if>><#rt/>
<#if value?has_content> ${value}#if><#if maxlength?has_content> maxlength="${maxlength}"#if><#rt/>
<#if visualEdtiorEnalble?has_content>
<#rt/>
#if>
#macro>
<#macro renderDateTimeField name className alert title value size maxlength id dateType shortDateInput timeDropdownParamName defaultDateTimeString calGif localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName>
<#rt/>
<#if title?has_content> title="${title}"#if><#if value?has_content> value="${value}"#if><#if size?has_content> size="${size}"#if><#rt/>
<#if maxlength?has_content> maxlength="${maxlength}"#if><#if id?has_content> id="${id}"#if>/><#rt/>
<#if dateType!="time" >
<#if shortDateInput?exists && shortDateInput>
#if>
${formName}.<#if timeDropdownParamName?has_content>${timeDropdownParamName}#if><#if defaultDateTimeString?has_content>,'${defaultDateTimeString}'#if>);"><#rt/>
<#if calGif?has_content><#rt/>#if>
<#rt/>
#if>
<#if timeDropdown?has_content && timeDropdown=="time-dropdown">
:<#rt/>
<#if isTwelveHour>
<#rt/>
#if>
#if>
#macro>
<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch>
<#if ajaxEnabled>
<#if otherFieldName?has_content>
#if>
#if>
#macro>
<#macro renderCheckField items className alert allChecked currentValue name event action>
<#list items as item>
<#rt/>
<#if allChecked?has_content && allChecked> checked="checked" <#elseif allChecked?has_content && !allChecked><#elseif currentValue?has_content && currentValue==item.key> checked="checked"#if> name="${name?default("")?html}" value="${item.key?default("")?html}"<#if event?has_content> ${event}="${action}"#if>/><#rt/>
${item.description}
#list>
#macro>
<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event ation>
<#list items as item>
| <#if leftStyle?has_content> #if>${leftText}<#if leftStyle?has_content> #if> | <#rt/>#if>
<#if text?has_content><#if style?has_content> #if>${text}<#if style?has_content> #if> | <#rt/>#if>
<#if rightText?has_content><#if rightStyle?has_content> #if>${rightText}<#if rightStyle?has_content> #if> | <#rt/>#if>