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