Sha256: b8454cbfb5868333d0b12333ea6049411780bb7aaa2ffb955e8496a106855a9a
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 Bytes
Contents
<%%= simple_form_for @<%= resource_name %> 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 -%> <%% end %>
Version data entries
2 entries across 2 versions & 1 rubygems