Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 479 Bytes
package form
import (
"github.com/gobuffalo/tags"
)
//TextArea creates a textarea for a form with passed options
func (f Form) TextArea(opts tags.Options) *tags.Tag {
return f.TextAreaTag(opts)
}
//TextAreaTag creates a textarea for a form with passed options
func (f Form) TextAreaTag(opts tags.Options) *tags.Tag {
if opts["value"] != nil {
opts["encoded_body"] = opts["value"]
delete(opts, "value")
}
delete(opts, "tag_only")
return tags.New("textarea", opts)
}
You can’t perform that action at this time.