Sha256: 0d69e376449f15218ba6ff5b6acf25712a630b28a4d26f875e161a8d9f4801be
Contents?: true
Size: 569 Bytes
Versions: 7
Compression:
Stored size: 569 Bytes
Contents
- type ||= nil - files_scope = (type == 'image') ? @site.files.images : @site.files .box.file-uploader = form_for :file, :url => admin_cms_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 => 'admin/cms/files/file', :object => file %iframe#file-upload-frame{:name => 'file-upload-frame', :src => ''}
Version data entries
7 entries across 7 versions & 1 rubygems