- Revision
- 679
- Author
- mauro
- Date
- 2008-05-16 03:47:25 -0500 (Fri, 16 May 2008)
Log Message
WAFFLE-80: Added file macro
Modified Paths
Diff
Modified: trunk/waffle-resources/src/main/resources/ftl/waffle/form.ftl (678 => 679)
--- trunk/waffle-resources/src/main/resources/ftl/waffle/form.ftl 2008-05-16 06:34:07 UTC (rev 678) +++ trunk/waffle-resources/src/main/resources/ftl/waffle/form.ftl 2008-05-16 08:47:25 UTC (rev 679) @@ -52,6 +52,16 @@ </#macro> <#-- + * Writes a file input element + * + * @param field the name of the field to bind the element to + * @param attributes any additional attributes for the element (defaults to "") +--> +<#macro file field attributes=""> + <input type="file" id="${field}" name="${field}" ${attributes}/> +</#macro> + +<#-- * Writes a hidden input element with a given value * * @param field the name of the field to bind the element to
To unsubscribe from this list please visit:
