Sha256: 27ce5985304daa23564eaf7504f411dbd860424868667041d17334803882049a
Contents?: true
Size: 482 Bytes
Versions: 8
Compression:
Stored size: 482 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 -%> = f.submit
Version data entries
8 entries across 8 versions & 2 rubygems