Fixed file upload form in details page
This commit is contained in:
parent
eec71890a5
commit
09d8fc2a54
1 changed files with 3 additions and 7 deletions
|
|
@ -26,14 +26,10 @@
|
|||
|
||||
// Upload image
|
||||
li
|
||||
//a.button.radius.expand href=upload_package_by_name_path(name: @package.name) Upload a new screenshot
|
||||
//= form_for @package, :url => upload_image_path, :html => { :multipart => true } do |form|
|
||||
//= form.file_field :image
|
||||
= form_tag(upload_image_path, multipart: true)
|
||||
= file_field_tag('image')
|
||||
= submit_tag
|
||||
|
||||
= form_for :screenshot, url: upload_image_path, html: { multipart: true } do |f|
|
||||
= f.label :image, 'Upload new screenshot'
|
||||
= f.file_field :image, id: 'fileupload', multiple: true
|
||||
= f.submit 'Save'
|
||||
|
||||
//- raise
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue