Sha256: b6018d2fc8240c982dc6993840629967dc5f5a19f0f433b0efec06b8f8e807c4

Contents?: true

Size: 653 Bytes

Versions: 2

Compression:

Stored size: 653 Bytes

Contents

- post ||= @post

.upload_handler
  %ul.attachments
    = hidden_field_tag "post[attachment_ids][]", ""
    - post.attachments.each do |attachment|
      %li.attachment
        = check_box_tag "post[attachment_ids][]", attachment.id, true, {:id => "post_attachment_#{attachment.id}", :class => 'choose_attachment'}
        = link_to attachment.filename, attachment.file.url, :class => "attachment #{attachment.extension}"
        = link_to 'remove', '#', :class => 'remove', :id => "remove_attachment_#{attachment.id}" 
  .uploads
  .selector
    = file_field_tag "files[]", :class => "filefield"
    .addfile
      = link_to "attach a file", '#'
      

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-forum-extension-0.6.1 app/views/posts/_uploader.html.haml
radiant-forum-extension-0.6.0 app/views/posts/_uploader.html.haml