app/views/spina/admin/attachments/index.html.haml in spina-0.12.0 vs app/views/spina/admin/attachments/index.html.haml in spina-1.0.0

- old
+ new

@@ -5,11 +5,12 @@ %th= Spina::Attachment.human_attribute_name(:name) %th= Spina::Attachment.human_attribute_name(:size) %th= Spina::Attachment.human_attribute_name(:created_at) %th %tr - %td{colspan: 5} - = form_for [spina, :admin, @attachment], html: {multipart: true, class: "new_document", style: 'margin-bottom: 0'} do |f| - = f.file_field :file, data: {customfileinput: true} + %td{colspan: 4} + = form_with model: [:admin, Spina::Attachment.new], class: 'new_document', style: 'margin-bottom: 0' do |f| + = f.submit style: 'display: none' + = f.file_field :files, multiple: true, data: {direct_upload_url: main_app.rails_direct_uploads_url, customfileinput: true} %tbody.table-prepend-document = render partial: 'spina/admin/attachments/attachment', collection: @attachments