Sha256: 05b539bbd4b530f4b7e32073d2de210805920948fa3b673286bf7a08521f69fe

Contents?: true

Size: 564 Bytes

Versions: 2

Compression:

Stored size: 564 Bytes

Contents

= simple_form_for(<%= form_for %>) do |f|
<% resource.belong_tos.each do |reference| -%>
<%= render_field(reference, depth: 1) %>
<% end -%>
<% attributes.each do |attribute| -%>
<%= render_field(attribute, depth: 1) %>
<% 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 -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_developer-0.2 lib/scaffolds/forms/default/_form.html.haml
effective_developer-0.1.1 lib/scaffolds/forms/default/_form.html.haml