import "github.com/gobuffalo/helpers/forms"
const ( FormKey = "form" RemoteFormKey = "remoteForm" FormForKey = "formFor" RemoteFormForKey = "remoteFormFor" )
Keys to be used in templates for the functions in this package.
Form implements a `github.com/gobuffalo/plush` helper around the form.New function in the `github.com/gobuffalo/tags/form` package
FormFor implements a `github.com/gobuffalo/plush` helper around the form.NewFormFor function in the `github.com/gobuffalo/tags/form` package
New returns a map of the helpers within this package.
RemoteForm implements a `github.com/gobuffalo/plush` helper around the form.New function in the `github.com/gobuffalo/tags/form` package
func RemoteFormFor(model interface{}, opts tags.Options, help hctx.HelperContext) (template.HTML, error)
RemoteFormFor implements a `github.com/gobuffalo/plush` helper around the form.NewFormFor function in the `github.com/gobuffalo/tags/form` package
<%= remoteFormFor(widget, {method: "POST"}) { %> <% } %> <form action="/widgets/b6b0ab24-19ae-4cdd-ad73-c5ecbddd6f91" id="widget-form" method="POST"><input name="_method" type="hidden" value="PUT"></form>
Path | Synopsis |
---|---|
bootstrap |
Package forms imports 6 packages (graph) and is imported by 6 packages. Updated 2020-01-15. Refresh now. Tools for package owners.