= 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 -%>