Sha256: ab563f2cd605558bf62855cc4ffe7ef45718932f8dec844b301635a46a1ea847
Contents?: true
Size: 580 Bytes
Versions: 12
Compression:
Stored size: 580 Bytes
Contents
= simple_form_for @<%= resource_name %>, :html => { :class => "form-horizontal" } do |f| <%- columns.each do |column| -%> = f.input :<%= column.name %> = error_span(@<%= resource_name %>[:<%= column.name %>]) <%- end -%> <%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%> = f.button :wrapped, :cancel => <%= controller_routing_path %>_path <%- else -%> = f.button :submit, :class => 'btn-primary' ' = link_to t('.cancel', :default => t("helpers.links.cancel")), <%= controller_routing_path %>_path, :class => 'btn btn-default' <%- end -%>
Version data entries
12 entries across 12 versions & 3 rubygems