<#-- 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 getFoStyle style> <#assign foStyles = { "listtitlestyle":"font-weight=\"bold\" text-align=\"center\" border=\"solid black\" padding=\"2pt\"", "tabletext":"border-left=\"solid black\" border-right=\"solid black\" padding-left=\"2pt\" padding-top=\"2pt\"", "tabletextright":"border-left=\"solid black\" border-right=\"solid black\" padding-left=\"2pt\" padding-top=\"2pt\" text-align=\"right\"", "tableheadverysmall":"column-width=\"0.3in\"", "tableheadsmall":"column-width=\"0.5in\"", "tableheadmedium":"column-width=\"1.5in\"", "tableheadwide":"column-width=\"3in\"", "head1":"font-size=\"12\" font-weight=\"bold\"", "head2":"font-weight=\"bold\"", "head3":"font-weight=\"bold\" font-style=\"italic\"", "error":"color=\"red\""}/> <#assign foStyle = foStyles[style]?default("")/> ${foStyle?default("")} <#macro makeBlock style text> <@getFoStyle style/>><#if text?exists>${text?xml} <#macro renderField text><#if text?exists>${text} <#macro renderDisplayField idName description class alert inPlaceEditorId="" inPlaceEditorUrl="" inPlaceEditorParams=""> <@makeBlock class description /> <#macro renderHyperlinkField> <#macro renderTextField name className alert value textSize maxlength id event action clientAutocomplete ajaxUrl ajaxEnabled><@makeBlock className value /> <#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble buttons><@makeBlock className value /> <#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><@makeBlock className value /> <#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 currentValue?has_content && firstInList?has_content> <@makeBlock "" explicitDescription /> <#else> <#list options as item> <@makeBlock "" item.description /> <#macro renderCheckField items className alert allChecked currentValue name event action><@makeBlock "" "" /> <#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event ation><@makeBlock "" "" /> <#macro renderSubmitField buttonType className alert formName title name event action imgSrc containerId ajaxUrl><@makeBlock "" "" /> <#macro renderResetField className alert name title><@makeBlock "" "" /> <#macro renderHiddenField name value> <#macro renderIgnoredField> <#macro renderFieldTitle style title>${title?default("")} <#macro renderSingleFormFieldTitle title>${title?default("")} <#macro renderFormOpen linkUrl formType targetWindow containerId containerStyle autocomplete name useRowSubmit> <#macro renderFormClose focusFieldName formName> <#macro renderMultiFormClose> <#macro renderFormatListWrapperOpen formName style columnStyles><#list columnStyles as columnStyle> <@getFoStyle columnStyle/>/> <#macro renderFormatListWrapperClose formName> <#macro renderFormatHeaderRowOpen style> <#macro renderFormatHeaderRowClose> <#-- FIXME: this is an hack to avoid FOP rendering errors for empty lists (fo:table-body cannot be null) --> <#macro renderFormatHeaderRowCellOpen style positionSpan>number-columns-spanned="${positionSpan}"<@getFoStyle "listtitlestyle"/>> <#macro renderFormatHeaderRowCellClose> <#macro renderFormatHeaderRowFormCellOpen style> <#macro renderFormatHeaderRowFormCellClose> <#macro renderFormatHeaderRowFormCellTitleSeparator style isLast> <#macro renderFormatItemRowOpen formName itemIndex altRowStyles evenRowStyle oddRowStyle> <#macro renderFormatItemRowClose formName> <#macro renderFormatItemRowCellOpen fieldName style positionSpan>number-columns-spanned="${positionSpan}"<#if style?has_content><@getFoStyle style/><#else><@getFoStyle "tabletext"/>> <#macro renderFormatItemRowCellClose fieldName> <#macro renderFormatItemRowFormCellOpen style> <#macro renderFormatItemRowFormCellClose> <#-- TODO: multi columns (position attribute) in single forms are still not implemented --> <#macro renderFormatSingleWrapperOpen formName style> <#macro renderFormatSingleWrapperClose formName> <#macro renderFormatFieldRowOpen> <#macro renderFormatFieldRowClose> <#macro renderFormatFieldRowTitleCellOpen style> <#macro renderFormatFieldRowTitleCellClose> <#macro renderFormatFieldRowSpacerCell> <#macro renderFormatFieldRowWidgetCellOpen positionSpan style> <#macro renderFormatFieldRowWidgetCellClose> <#macro renderFormatEmptySpace> <#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase><@makeBlock className value /> <#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><@makeBlock className value /> <#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru> <@makeBlock className value /> <#macro renderLookupField className alert name value size maxlength autocomplete descriptionFieldName formName lookupFieldFormName targetParameterIter imgSrc><@makeBlock className value /> <#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> <#macro renderFileField className alert name value size maxlength autocomplete><@makeBlock className value /> <#macro renderPasswordField className alert name value size maxlength id autocomplete><@makeBlock className "" /> <#macro renderImageField value border width height event action><@makeBlock "" "" /> <#macro renderBanner style leftStyle rightStyle leftText text rightText><@makeBlock "" "" /> <#macro renderFieldGroupOpen style id title collapsed collapsibleAreaId collapsible expandToolTip collapseToolTip> <#macro renderFieldGroupClose style id title> <#macro renderHyperlinkTitle name title> <#macro renderSortField style title linkUrl ajaxEnabled> <#macro formatBoundaryComment boundaryType widgetType widgetName> <#macro makeHiddenFormLinkAnchor linkStyle hiddenFormName event action imgSrc description><@renderField description /> <#macro makeHyperlinkString linkStyle hiddenFormName event action imgSrc linkUrl targetWindow description><@renderField description /> <#macro renderTooltip tooltip tooltipStyle> <#macro renderAsterisks requiredField requiredStyle>