package bootstrap
import "github.com/gobuffalo/helpers/forms/bootstrap"
Index ¶
- Constants
- func Form(opts tags.Options, help hctx.HelperContext) (template.HTML, error)
- func FormFor(model interface{}, opts tags.Options, help hctx.HelperContext) (template.HTML, error)
- func New() hctx.Map
- func RemoteForm(opts tags.Options, help hctx.HelperContext) (template.HTML, error)
- func RemoteFormFor(model interface{}, opts tags.Options, help hctx.HelperContext) (template.HTML, error)
Constants ¶
const ( FormKey = "bootstrapForm" RemoteFormKey = "remoteBootstrapForm" FormForKey = "bootstrapFormFor" RemoteFormForKey = "remoteBootstrapFormFor" )
Keys to be used in templates for the functions in this package.
Functions ¶
func Form ¶
func Form(opts tags.Options, help hctx.HelperContext) (template.HTML, error)
Form implements a `github.com/gobuffalo/plush` helper around the bootstrap.New function in the `github.com/gobuffalo/tags/form/bootstrap` package
func FormFor ¶
func FormFor(model interface{}, opts tags.Options, help hctx.HelperContext) (template.HTML, error)
FormFor implements a `github.com/gobuffalo/plush` helper around the bootstrap.NewFormFor function in the `github.com/gobuffalo/tags/form/bootstrap` package
func New ¶
New returns a map of the helpers within this package.
func RemoteForm ¶
func RemoteForm(opts tags.Options, help hctx.HelperContext) (template.HTML, error)
RemoteForm implements a `github.com/gobuffalo/plush` helper around the bootstrap.New function in the `github.com/gobuffalo/tags/form/bootstrap` package
func RemoteFormFor ¶
func RemoteFormFor(model interface{}, opts tags.Options, help hctx.HelperContext) (template.HTML, error)
FormFor implements a `github.com/gobuffalo/plush` helper around the bootstrap.NewFormFor function in the `github.com/gobuffalo/tags/form/bootstrap` 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>
Source Files ¶
bootstrap.go form.go form_for.go
- Version
- v0.6.10 (latest)
- Published
- May 16, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 2 days ago –
Tools for package owners.