Sha256: 19615b0426a513ecdbef1cc53b0324c085763c790a43cb39ad13286af3401468
Contents?: true
Size: 682 Bytes
Versions: 8
Compression:
Stored size: 682 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 -%> <% @attachments.each do |attachment| %> <% if attachment.type == :image -%> = fae_image_form f, :<%= attachment.name -%> <% elsif attachment.type == :file -%> = fae_file_form f, :<%= attachment.name -%> <% end -%> <% 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
8 entries across 8 versions & 2 rubygems