<%= simple_form_for [parent, resource] do |form| -%> <%= form.error_notification %>
<% form_fields.each do |form_field| -%> <%= render_form_field(form, form_field) -%> <% end -%>
<%= form.button :submit, class: "btn btn-primary" %> <%= form.button :submit, "Save and continue", :name => "commit_and_continue" %> <% unless resource.new_record? -%> <%= link_to "Delete", [parent, resource], :class => "btn btn-danger delete", :method => :delete, :data => { :confirm => 'Are you sure?' } %> <% end -%> <% end -%>