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