Sha256: 7fc54bccd57dc92cec03ab67ebac928cf885bb9a783d1d8b681348ee5b6a3f21

Contents?: true

Size: 569 Bytes

Versions: 11

Compression:

Stored size: 569 Bytes

Contents

- type ||= nil
- files_scope = (type == 'image') ? @site.files.images : @site.files

.box.file-uploader
  = form_for :file, :url => cms_admin_site_files_path(@site, :ajax => true), :html => {:multipart => true, :target => 'file-upload-frame'} do |form|
    %span.btn.btn-file
      = t('.button')
      = form.file_field :file, :multiple => true, :id => nil
  
  .uploaded-files
    - files_scope.order(:label).each do |file|
      = render :partial => 'cms_admin/files/file', :object => file
      
  %iframe#file-upload-frame{:name => 'file-upload-frame', :src => ''}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
comfortable_mexican_sofa-1.9.3 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.9.2 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.8.5 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.9.1 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.9.0 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.8.4 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.8.3 app/views/cms_admin/files/_index.html.haml
comfypress-0.1.4 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.8.2 app/views/cms_admin/files/_index.html.haml
comfypress-0.1.3 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.8.1 app/views/cms_admin/files/_index.html.haml