Sha256: 423af1eb80cc7a83331cf6623df1da48747d904d20111adc5c88dc4b75327757

Contents?: true

Size: 565 Bytes

Versions: 4

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

  .form-actions
  <% if defined?(EffectiveResources) -%>
  = simple_form_submit(f)
  <% else -%>
  = 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

4 entries across 4 versions & 1 rubygems

Version Path
effective_developer-0.2.7 lib/scaffolds/forms/default/_form.html.haml
effective_developer-0.2.6 lib/scaffolds/forms/default/_form.html.haml
effective_developer-0.2.5 lib/scaffolds/forms/default/_form.html.haml
effective_developer-0.2.4 lib/scaffolds/forms/default/_form.html.haml