Sha256: ff1f3eb938216127110876564ea31544391c39f1e616a035ab089ace0fe1f009

Contents?: true

Size: 453 Bytes

Versions: 4

Compression:

Stored size: 453 Bytes

Contents

= simple_form_for(['<%= options.namespace %>', @item], html: {multipart: true, novalidate: true, class: 'js-file-form'}, remote: true, data: {type: "html"}) do |f|
<% @form_attrs.each do |attr| -%>
  = fae_input f, :<%= attr %>
<% end -%>
<% if options.parent_model.present? %>
  = f.hidden_field :<%= options.parent_model.underscore %>_id
<% end -%>

  = f.submit
  = button_tag 'Cancel', type: 'button', class: 'js-cancel-nested cancel-nested-button'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fae-rails-1.4.1 lib/generators/fae/templates/views/_form_nested.html.slim
fae-rails-1.4.0 lib/generators/fae/templates/views/_form_nested.html.slim
fae-rails-1.3.1 lib/generators/fae/templates/views/_form_nested.html.slim
fae-rails-1.3.0 lib/generators/fae/templates/views/_form_nested.html.slim