Sha256: 725f1dccccb3b088762c346b8c0008b63073c48d18a5da6cecbc7358aae561bc
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
= stylesheet_link_tag '//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css' %div{:style => 'padding: 10px;'} %h2 Upload file(s) = s3_cors_fileupload_form_tag :id => 'fileupload' .javascript-templates = render 'template_upload' = render 'template_uploaded' =# render 'template_download' :javascript $(function () { // Initialize the jQuery File Upload widget: $('#fileupload').fileupload({ dataType: 'xml', sequentialUploads: true, downloadTemplateId: null, downloadTemplate: null }); // Load existing files: $.getJSON('/source_files', function (files) { $.each(files, function(index, value) { $('#upload_files tbody').append(tmpl('template-uploaded', value)); }); }); }); // used by the jQuery File Upload var fileUploadErrors = { maxFileSize: 'File is too big', minFileSize: 'File is too small', acceptFileTypes: 'Filetype not allowed', maxNumberOfFiles: 'Max number of files exceeded', uploadedBytes: 'Uploaded bytes exceed file size', emptyResult: 'Empty file upload result' };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
s3_cors_fileupload-0.2.0.pre1 | lib/generators/s3_cors_fileupload/install/templates/views/haml/index.html.haml |