Sha256: 1146cec41910e018d2ccccdc5c28a22ffea0143b660fe209816efd3171503298

Contents?: true

Size: 364 Bytes

Versions: 3

Compression:

Stored size: 364 Bytes

Contents

= simple_form_for(@<%= singular_table_name %>) do |f|
  -if @<%= singular_table_name %>.errors.any?
    .alert-message.error
      = f.error_notification

  .inputs
  <%- attributes.each do |attribute| -%>
    = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
  <%- end -%>

  .actions
    = f.button :submit, :class => "btn primary"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bootstrap-generators-1.4.0 lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml
bootstrap-generators-1.0.1 lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml
bootstrap-generators-1.0.0 lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml