helpers: github.com/gobuffalo/helpers/forms/bootstrap Index | Files

package bootstrap

import "github.com/gobuffalo/helpers/forms/bootstrap"

Index

Package Files

bootstrap.go form.go form_for.go

Constants

const (
    FormKey          = "bootstrapForm"
    RemoteFormKey    = "remoteBootstrapForm"
    FormForKey       = "bootstrapFormFor"
    RemoteFormForKey = "remoteBootstrapFormFor"
)

Keys to be used in templates for the functions in this package.

func Form Uses

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 Uses

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 Uses

func New() hctx.Map

New returns a map of the helpers within this package.

func RemoteForm Uses

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 Uses

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>

Package bootstrap imports 6 packages (graph) and is imported by 6 packages. Updated 2019-04-24. Refresh now. Tools for package owners.