fdb4bb1 Feb 19, 2015
@guillaumebort @julienrf
18 lines (16 sloc) 511 Bytes
@**
* Generate an HTML textarea.
*
* Example:
* {{{
* @textarea(field = myForm("address"), args = 'rows -> 3, 'cols -> 50)
* }}}
*
* @param field The form field.
* @param args Set of extra attributes.
* @param handler The field constructor.
*@
@(field: play.api.data.Field, args: (Symbol,Any)*)(implicit handler: FieldConstructor, messages: play.api.i18n.Messages)
@input(field, args:_*) { (id, name, value, htmlArgs) =>
<textarea id="@id" name="@name" @toHtmlArgs(htmlArgs)>@value</textarea>
}