lib/scaffolds/forms/_form.html.haml in effective_developer-0.0.9 vs lib/scaffolds/forms/_form.html.haml in effective_developer-0.0.10

- old
+ new

@@ -1,9 +1,13 @@ = simple_form_for(<%= form_for %>) do |f| <% for attribute in attributes -%> = f.input :<%= attribute.name %> <% end -%> +<% if defined?(EffectiveResources) -%> + = simple_form_submit(f) +<% else -%> %p.text-right = f.button :submit, 'Save', data: { disable_with: 'Saving...' } = f.button :submit, 'Save and Continue', data: { disable_with: 'Saving...' } = f.button :submit, 'Save and Add New', data: { disable_with: 'Saving...' } +<% end -%>