Sha256: 641cf6e59e1491e893ef325d12b08f12ffe2df869ccd17542af86180cf5ae106
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 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