Sha256: 76fa571f2d54a51fe5f34650e72e70e6727f42b25d707b992b6851b08c54768f

Contents?: true

Size: 898 Bytes

Versions: 7

Compression:

Stored size: 898 Bytes

Contents

<div id='file_uploads' class='box'>
  
  <%= form_for :file, :url => cms_admin_site_files_path(@site), :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'>
    <% if (images = Cms::File.images.order(:label)).present? %>
      <div class='section images'>
        <h3>Images</h3>
        <% images.each do |file| %>
          <%= render :partial => 'cms_admin/files/file', :object => file %>
        <% end %>
      </div>
    <% end %>
    <% if (images = Cms::File.not_images.order(:label)).present? %>
      <div class='section other'>
        <h3>Files</h3>
        <% images.each do |file| %>
          <%= render :partial => 'cms_admin/files/file', :object => file %>
        <% end %>
      </div>
    <% end %>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.5.11 app/views/cms_admin/files/_index.html.erb
comfortable_mexican_sofa-1.5.10 app/views/cms_admin/files/_index.html.erb
comfortable_mexican_sofa-1.5.9 app/views/cms_admin/files/_index.html.erb
comfortable_mexican_sofa-1.5.8 app/views/cms_admin/files/_index.html.erb
comfortable_mexican_sofa-1.5.7 app/views/cms_admin/files/_index.html.erb
comfortable_mexican_sofa-1.5.6 app/views/cms_admin/files/_index.html.erb
comfortable_mexican_sofa-1.5.5 app/views/cms_admin/files/_index.html.erb