Permalink
Browse files

Fix upload in edit page

  • Loading branch information...
1 parent 17f8875 commit 6b2cf70ce0cda4967c6a4053d734ae3368805aa2 @kyungbae kyungbae committed Aug 16, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 app/views/contributions/edit.html.haml
@@ -7,5 +7,11 @@
= image_tag resource.item.thumbnail, { class: 'img-polaroid' }
= simple_form_for resource do |f|
= f.input :details, as: :text, label: false
+ .file-upload
+ = f.simple_fields_for :uploads do |upload|
+ = render 'partials/upload_fields', f: upload
+ .links-add
+ .icon-plus-circle
+ = link_to_add_association 'Add Upload', f, :uploads, class: 'add-file', partial: 'partials/upload_fields'
.submit-button
=f.button :submit, "Save changes", class: 'submit-button', id: 'thread-submit-button'

0 comments on commit 6b2cf70

Please sign in to comment.