Sha256: b242b4036c86b7d7c47370dbde379ad0162eacf30af17c81db8eb7077ef31fe6
Contents?: true
Size: 1.2 KB
Versions: 4
Compression:
Stored size: 1.2 KB
Contents
- content_for :head do = javascript_include_tag "kit/jquery.fileupload" - content_for :page_scripts do $(document).ready(function() { initialise_upload_form('#uploadform'); $('#files').on('click', '.pagination a', function(event) { event.preventDefault(); $.ajax({type: 'GET', url: $(this).attr('href')}); }); }); - content_for :main do %h1.file_icon Files .field_help Here you can upload files of any type. You can also upload images in the editor directly. %fieldset#upload %legend Upload %form(id="uploadform" action="/assets" method="POST" enctype="multipart/form-data") %input(type="file" name="asset[]" multiple) %br or drag and drop file anywhere on this page %ul#filelist %div(style="margin-top: 10px; margin-bottom: 10px;") = form_tag("/assets", :method=>:get) do |f| = text_field_tag :search, params[:search] = submit_tag "Search" or = link_to "Reset", "/assets" .field_help You can search for the name of the file, the content type (e.g. 'gif' or 'doc') or any of the tags you've given the file. #files(style="margin-top: 10px;") = render(:partial=>"asset/asset_list", :locals=>{:mode=>"editor"})
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kit_cms-2.3.9 | app/views/asset/index.html.haml |
kit_cms-2.3.8 | app/views/asset/index.html.haml |
kit_cms-2.3.7 | app/views/asset/index.html.haml |
kit_cms-2.3.6 | app/views/asset/index.html.haml |