Sha256: dd73165f24fcb69c300fc9b49e2b3c5bcb67bef502b3a3a2ab4a2c7608788a2a

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

= simple_form_for @<%= resource_name %>, html: { class: 'form-horizontal' } do |f|
<%- attributes.each do |column| -%>
  = f.input :<%= column.name %>
  = f.error_span(@<%= resource_name %>[:<%= column.name %>])
<%- end -%>
<%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%>
  = f.button :wrapped, cancel: <%= controller_name %>_path
<%- else -%>
  = f.button :submit, class: 'btn-primary'
  = link_to t('.cancel', default: t("helpers.links.cancel")), <%= controller_name %>_path, class: 'btn btn-primary'
<%- end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railsstrap-4.0.0.beta3 lib/generators/railsstrap/scaffold/templates/simple_form/_form.html.haml
railsstrap-4.0.0.beta2 lib/generators/railsstrap/scaffold/templates/simple_form/_form.html.haml