<#-- 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} <#macro renderDisplayField idName description class alert> <#if class?has_content || alert=="true"> alert"><#rt/> <#if description?has_content>${description}<#else> <#if class?has_content || alert=="true"> <#macro renderHyperlinkField> <#macro renderTextField name className alert value textSize maxlength id event action clientAutocomplete ajaxUrl ajaxEnabled> <@renderClass className alert /> <#if value?has_content> value="${value}"<#if textSize?has_content> size="${textSize}"<#if maxlength?has_content> maxlength="${maxlength}"<#rt/> <#if id?has_content> id="${id}"<#if event?has_content && action?has_content>${event}="${action}"<#if clientAutocomplete?has_content && clientAutocomplete=="false"> autocomplete="off"/><#rt/> <#if ajaxEnabled?has_content && ajaxEnabled> <#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble buttons> <#rt/> <#if visualEdtiorEnalble?has_content> <#rt/> <#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 value?has_content> value="${value}"<#if size?has_content> size="${size}"<#rt/> <#if maxlength?has_content> maxlength="${maxlength}"<#if id?has_content> id="${id}"/><#rt/> <#if dateType!="time" > <#if shortDateInput?exists && shortDateInput> ${formName}.<#if timeDropdownParamName?has_content>${timeDropdownParamName},'<#if defaultDateTimeString?has_content>${defaultDateTimeString},');"><#rt/> <#if calGif?has_content><#if localizedIconTitle?has_content>${localizedIconTitle}</#if><#rt/> <#rt/> <#if timeDropdown?has_content && timeDropdown=="time-dropdown"> :<#rt/> <#if isTwelveHour> <#rt/> <#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize> <#if otherFieldName?has_content> <#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" name="${name?default("")?html}" value="${item.key?default("")?html}"<#if event?has_content> ${event}="${action}"/><#rt/> ${item.description} <#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event ation> <#list items as item>
><#rt/> <#if rp.currentValue==item.key> checked="checked"<#elseif noCurrentSelectedKey?has_content && noCurrentSelectedKey == item.key> checked="checked" name="${name?default("")?html}" value="${item.key?default("")?html}"<#if event?has_content> ${event}="${action}"/><#rt/> ${item.description}
<#macro renderSubmitField buttonType className alert formName title name event action imgSrc> <#if buttonType=="text-link"> href="javascript:document.${formName}.submit()"><#if title?has_content> title="${title}" <#elseif buttonType=="image"> class="${className}<#if alert?has_content> ${alert}"<#if name?has_content> name="${name}"<#if title?has_content> alt="${title}"<#if event?has_content> ${event}="${action}" /> <#else> class="${className}<#if alert?has_content> ${alert}"<#if name?exists> name="${name}"<#if title?has_content> value="${title}"<#if event?has_content> ${event}="${action}" /> <#macro renderResetField className alert name title> name="${name}"<#if title?has_content> value="${title}"/> <#macro renderHiddenField name value> value="${value}"/> <#macro renderIgnoredField> <#macro renderFieldTitle style title><#if style?has_content> enctype="multipart/form-data"<#if targetWindow?has_content> target="${targetWindow}"<#if containerId?has_content> id="${containerId}" class=<#if containerStyle?has_content>"${containerStyle}"<#else>"basic-form" onSubmit="javascript:submitFormDisableSubmits(this)"<#if autocomplete?has_content> autocomplete="${autocomplete}" name="${name}" <#if useRowSubmit?has_content && useRowSubmit>> <#macro renderFormClose focusFieldName formName><#if focusFieldName?has_content> <#macro renderMultiFormClose> <#macro renderFormatListWrapperOpen style> <#macro renderFormatListWrapperClose>
<#macro renderFormatHeaderRowOpen style> <#macro renderFormatHeaderRowClose> <#macro renderFormatHeaderRowCellOpen style positionSpan> colspan="${positionSpan}"<#if style?has_content>class="${style}" <#macro renderFormatHeaderRowCellClose> <#macro renderFormatHeaderRowFormCellOpen style> class="${style}"> <#macro renderFormatHeaderRowFormCellClose> <#macro renderFormatHeaderRowFormCellTitleSeparator style isLast><#if style?has_content> - <#if style?has_content>
<#macro renderFormatItemRowOpen itemIndex altRowStyles evenRowStyle oddRowStyle> <#if itemIndex%2==0><#if evenRowStyle?has_content>class="${evenRowStyle}<#if altRowStyles?has_content> ${altRowStyles}"<#elseif altRowStyles?has_content>class="${altRowStyles}"<#else><#if oddRowStyle?has_content>class="${oddRowStyle}<#if altRowStyles?has_content> ${altRowStyles}"<#elseif altRowStyles?has_content>class="${altRowStyles}" > <#macro renderFormatItemRowClose> <#macro renderFormatItemRowCellOpen style positionSpan> 1>colspan="${positionSpan}"<#if style?has_content>class="${style}" <#macro renderFormatItemRowCellClose> <#macro renderFormatItemRowFormCellOpen style> class="${style}"> <#macro renderFormatItemRowFormCellClose> <#macro renderFormatSingleWrapperOpen style> class="${style}" > <#macro renderFormatSingleWrapperClose>
<#macro renderFormatFieldRowOpen> <#macro renderFormatFieldRowClose> <#macro renderFormatFieldRowTitleCellOpen style> <#macro renderFormatFieldRowTitleCellClose> <#macro renderFormatFieldRowSpacerCell> <#macro renderFormatFieldRowWidgetCellOpen positionSpan style> colspan="${1+positionSpan*3}"<#if style?has_content> class="${style}"> <#macro renderFormatFieldRowWidgetCellClose> <#macro renderFormatEmptySpace>  <#macro renderTextFindField> <#macro renderDateFindField> <#macro renderRangeFindField> <#macro renderLookupField> <#macro renderFileField> <#macro renderPasswordField> <#macro renderImageField> <#macro renderBanner> <#macro renderFieldGroupOpen> <#macro renderFieldGroupClose> <#macro renderHyperlinkTitle name title><#if title?has_content>${title}
<#macro renderSortField style title linkUrl ajaxEnabled> class="${style}" href="<#if ajaxEnabled?has_content && ajaxEnabled>javascript:ajaxUpdateAreas('${linkUrl}')<#else>${linkUrl}">${title} <#macro formatBoundaryComment boundaryType widgetType widgetName> <#macro renderTooltip tooltip tooltipStyle><#if tooltip?has_content>${tooltip}<#rt/> <#macro renderClass className alert><#if className?has_content>class="${className}<#if alert?exists> ${alert}<#if className?exists>"<#rt/> <#macro renderAsterisks requiredField requiredStyle><#if requiredField=="true"><#if requiredStyle?has_content>*