<#-- 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}<#lt/> <#macro renderDisplayField idName description class alert inPlaceEditorUrl="" inPlaceEditorParams=""> <#if inPlaceEditorUrl?has_content || class?has_content || alert=="true"> id="${idName}" <@renderClass class alert />><#t/> <#if description?has_content> ${description}<#t/> <#else>  <#t/> <#if inPlaceEditorUrl?has_content || class?has_content || alert=="true"> <#lt/> <#if inPlaceEditorUrl?has_content && idName?has_content> <#lt/> <#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}"<#rt/> <#if textSize?has_content> size="${textSize}"<#rt/> <#if maxlength?has_content> maxlength="${maxlength}"<#rt/> <#if id?has_content> id="${id}"<#rt/> <#if event?has_content && action?has_content> ${event}="${action}"<#rt/> <#if clientAutocomplete?has_content && clientAutocomplete=="false"> autocomplete="off"<#rt/> /><#t/> <#if ajaxEnabled?has_content && ajaxEnabled> <#lt/> <#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 dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch> <#if ajaxEnabled> name="${name?default("")}<#rt/> <#if ajaxEnabled> _description"<#if id?has_content> id="${id}_description"<#if currentValue?has_content> value="${explicitDescription}"/><#rt/> id="${id}"<#if currentValue?has_content> value="${currentValue}"/><#rt/> <#else> " <@renderClass className alert /><#if id?has_content> id="${id}"<#if multiple?has_content> multiple="multiple"<#if otherFieldSize gt 0> onchange="process_choice(this,document.${formName}.${otherFieldName})"<#if event?has_content> ${event}="${action}"<#if size?has_content> size="${size}"> <#if firstInList?has_content && currentValue?has_content> <#rt/> <#rt/> <#if allowEmpty?has_content> <#list options as item> selected="selected"<#elseif !currentValue?has_content && noCurrentSelectedKey?has_content && noCurrentSelectedKey == item.key> selected="selected" value="${item.key}">${item.description}<#rt/> <#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.value> checked="checked" name="${name?default("")?html}" value="${item.value?default("")?html}"<#if event?has_content> ${event}="${action}"/><#rt/> ${item.description?default("")} <#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action> <#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 containerId ajaxUrl> <#if buttonType=="text-link"> href="javascript:document.${formName}.submit()"><#if title?has_content>${title} <#elseif buttonType=="image"> <#if name?has_content> name="${name}"<#if title?has_content> alt="${title}"<#if event?has_content> ${event}="${action}" /> <#else> <#if name?exists> name="${name}"<#if title?has_content> value="${title}"<#if event?has_content> ${event}="${action}"<#if containerId?has_content> onclick="ajaxSubmitFormUpdateAreas('${containerId}', '${ajaxUrl}')"/> <#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> <#t/> ${title}<#t/> <#if style?has_content> <#lt/> <#macro renderSingleFormFieldTitle> <#macro renderFormOpen linkUrl formType targetWindow containerId containerStyle autocomplete name useRowSubmit>
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}"><#lt/> <#if useRowSubmit?has_content && useRowSubmit> <#macro renderFormClose focusFieldName formName>
<#lt/> <#if focusFieldName?has_content> <#lt/> <#macro renderMultiFormClose> <#macro renderFormatListWrapperOpen formName style columnStyles> <#lt/> <#macro renderFormatListWrapperClose formName>
<#lt/> <#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 formName 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 formName> <#macro renderFormatItemRowCellOpen fieldName style positionSpan> colspan="${positionSpan}"<#if style?has_content>class="${style}"> <#macro renderFormatItemRowCellClose fieldName> <#macro renderFormatItemRowFormCellOpen style> class="${style}"> <#macro renderFormatItemRowFormCellClose> <#macro renderFormatSingleWrapperOpen formName style> class="${style}"> <#macro renderFormatSingleWrapperClose formName>
<#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> <#-- Initial work to convert table based layout for "single" form to divs. <#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 name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase> <#if opEquals?has_content> <#else> "${name}_op" value="${defaultOption}"/><#rt/> name="${name}"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"<#if autocomplete?has_content> autocomplete="off"/><#rt/> <#if titleStyle?has_content><#rt/> <#if hideIgnoreCase> "Y"<#else> ""/><#rt/> <#else> checked="checked" /> ${ignoreCase}<#rt/> <#if titleStyle?has_content> <#macro renderDateFindField className alert name localizedInputTitle value size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty> <#if name?has_content> name="${name?html}_fld0_value"<#if localizedInputTitle?has_content> title="${localizedInputTitle}"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"/><#rt/> <#if dateType != "time"> <#if dateType == "date"> <#if formName?has_content>${formName}.<#if name?has_content>${name}_fld0_value,'<#if defaultDateTimeString?has_content>${defaultDateTimeString}');"><#rt/> ${localizedIconTitle}<#rt/> <#if titleStyle?has_content> <#rt/> name="${name}_fld0_op" class="selectBox"><#rt/> <#rt/> <#rt/> <#rt/> <#rt/> <#rt/> <#if titleStyle?has_content> <#rt/>
<#rt/> <#if name?has_content> name="${name}_fld1_value"<#if localizedInputTitle?exists> title="${localizedInputTitle?html}"<#if value2?has_content> value="${value2}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"/><#rt/> <#if dateType != "time"> <#if dateType == "date"> <#if formName?has_content>${formName}.<#if name?has_content>${name}_fld1_value,'<#if defaultDateTimeString?has_content>${defaultDateTimeString}');"><#rt/> ${localizedIconTitle}<#rt/> <#if titleStyle?has_content> <#rt/> <#rt/> <#if titleStyle?has_content> <#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru> <#if name?has_content>name="${name}_fld0_value"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"<#if autocomplete?has_content> autocomplete="off"/><#rt/> <#if titleStyle?has_content> <#rt/> <#rt/> <#if titleStyle?has_content> <#rt/>
<#rt/> <#if name?has_content> name="${name}_fld1_value"<#if value2?has_content> value="${value2}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"<#if autocomplete?has_content> autocomplete="off"/><#rt/> <#if titleStyle?has_content> <#rt/> <#rt/> <#if titleStyle?has_content> <#macro renderLookupField className alert name value size maxlength autocomplete descriptionFieldName formName lookupFieldFormName targetParameterIter imgSrc> <#if name?has_content> name="${name}"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"<#if autocomplete?has_content> autocomplete="off"/><#rt/> <#if descriptionFieldName?has_content> '${lookupFieldFormName}'<#rt> <#if targetParameterIter?exists> <#list targetParameterIter as item> ,document.${formName}.${item}.value<#rt> );"><#rt> Lookup<#rt> <#macro renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl paginateFirstLabel paginatePreviousStyle ajaxPreviousUrl previousUrl paginatePreviousLabel pageLabel ajaxSelectUrl selectUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl paginateNextLabel paginateLastStyle ajaxLastUrl lastUrl paginateLastLabel>
 
     
  • ${paginateFirstLabel}<#else>-disabled">${paginateFirstLabel}
  • ${paginatePreviousLabel}<#else>-disabled">${paginatePreviousLabel}
  • <#if listSize gt 0 && javaScriptEnabled>
  • ${pageLabel}
  • ${commonDisplaying}
  • ${paginateNextLabel}<#else>-disabled">${paginateNextLabel}
  • ${paginateLastLabel}<#else>-disabled">${paginateLastLabel}
<#macro renderFileField className alert name value size maxlength autocomplete><#if name?has_content> name="${name}"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"<#if autocomplete?has_content> autocomplete="off"/><#rt/> <#macro renderPasswordField className alert name value size maxlength id autocomplete><#if name?has_content> name="${name}"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"<#if id?has_content> id="${id}"<#if autocomplete?has_content> autocomplete="off"/> <#macro renderImageField value border width height event action> src="${value}"<#if border?has_content> border="${border}"<#if width?has_content> width="${width}"<#if height?has_content> height="${height}"<#if event?has_content> ${rp.event?html}="${action}" /> <#macro renderBanner style leftStyle rightStyle leftText text rightText> <#rt/> <#if leftText?has_content><#rt/> <#if text?has_content><#rt/> <#if rightText?has_content><#rt/>
<#if leftStyle?has_content>
${leftText}<#if leftStyle?has_content>
<#if style?has_content>
${text}<#if style?has_content>
<#if rightStyle?has_content>
${rightText}<#if rightStyle?has_content>
<#macro renderFieldGroupOpen style id title collapsed collapsibleAreaId collapsible expandToolTip collapseToolTip> <#if style?has_content || id?has_content || title?has_content>
id="${id}">
<#rt/> <#if collapsible><#rt/> <#if title?has_content>
${title}
style="display: none;"> <#macro renderFieldGroupClose style id title><#if style?has_content || id?has_content || title?has_content>
<#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?has_content> ${alert}" <#macro renderAsterisks requiredField requiredStyle> <#if requiredField=="true"><#if requiredStyle?has_content>* <#macro makeHiddenFormLinkForm actionUrl name parameters targetWindow>
target="${targetWindow}" onSubmit="javascript:submitFormDisableSubmits(this)" name="${name}"><#list parameters as parameter>
<#macro makeHiddenFormLinkAnchor linkStyle hiddenFormName event action imgSrc description>class="${linkStyle}" href="javascript:document.${hiddenFormName}.submit()"<#if action?has_content && event?has_content> ${event}="${action}"><#if imgSrc?has_content>${description} <#macro makeHyperlinkString linkStyle hiddenFormName event action imgSrc linkUrl targetWindow description>class="${linkStyle}" href="${linkUrl}"<#if targetWindow?has_content> target="${targetWindow}"<#if action?has_content && event?has_content> ${event}="${action}"><#if imgSrc?has_content>${description}