Title: [waffle-scm] [677] trunk/waffle-resources/src/main/resources/ftl/waffle/form.ftl: WAFFLE-80: Added textarea macro.
Revision
677
Author
mauro
Date
2008-05-16 01:32:53 -0500 (Fri, 16 May 2008)

Log Message

WAFFLE-80: Added textarea macro.

Modified Paths

Diff

Modified: trunk/waffle-resources/src/main/resources/ftl/waffle/form.ftl (676 => 677)

--- trunk/waffle-resources/src/main/resources/ftl/waffle/form.ftl	2008-05-10 11:28:25 UTC (rev 676)
+++ trunk/waffle-resources/src/main/resources/ftl/waffle/form.ftl	2008-05-16 06:32:53 UTC (rev 677)
@@ -97,6 +97,17 @@
 </#macro>
 
 <#--
+ * Writes a textarea element with a given value
+ *
+ * @param field the name of the field to bind the element to 
+ * @param value the value
+ * @param attributes any additional attributes for the element (defaults to "")
+-->
+<#macro textarea field value attributes="">
+    <textarea id="${field}" name="${field}" ${attributes}>${value}</textarea>
+</#macro>
+
+<#--
  * Writes a select input element allowing a value to be chosen from a list of options.
  *
  * @param field the name of the field to bind the element to 


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to