Sha256: f3edda91901234032ca2a741d4e6b67a952e2acb68b0a660e6ad0276c1001676

Contents?: true

Size: 565 Bytes

Versions: 5

Compression:

Stored size: 565 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 -%>
  .form-actions
    = 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

5 entries across 5 versions & 1 rubygems

Version Path
effective_developer-0.3.0 lib/scaffolds/simple_form/default/_form.html.haml
effective_developer-0.2.14 lib/scaffolds/simple_form/default/_form.html.haml
effective_developer-0.2.13 lib/scaffolds/simple_form/default/_form.html.haml
effective_developer-0.2.12 lib/scaffolds/forms/default/_form.html.haml
effective_developer-0.2.11 lib/scaffolds/forms/default/_form.html.haml