Sha256: a2a660f7ccc5cc6e084df1b63040a78ddd0fa26be78c1bf35845c11ff3e28487
Contents?: true
Size: 788 Bytes
Versions: 9
Compression:
Stored size: 788 Bytes
Contents
<div id='file_uploads' class='box'> <% key, id = if @layout && !@layout.new_record? [:layout_id, @layout.id] elsif @page && !@page.new_record? [:page_id, @page.id] elsif @snippet && !@snippet.new_record? [:snippet_id, @snippet.id] end url_param = key.present?? "?file[#{key}]=#{id}" : '' %> <%= form_for :file, :url => cms_admin_site_files_path(@site) + url_param, :html => {:multipart => true} do |form| %> <a id='uploader_button' href='#' class='big button'><%= t('.button') %></a> <%= form.file_field :file, :multiple => true %> <% end %> <div id='uploaded_files'> <% Cms::File.order('label').all.each do |file| %> <%= render :partial => 'cms_admin/files/file', :object => file %> <% end %> </div> </div>
Version data entries
9 entries across 9 versions & 1 rubygems