Sha256: fa57b83e93605ac1b4393b152f79d43153fce0610ff2897bf59cf54cf3e63ba1
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 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)</h2> <%= s3_cors_fileupload_form_tag :id => 'fileupload' %> <div class="javascript-templates"> <%= render 'template_upload' %> <%= render 'template_download' %> <%= render 'template_uploaded' %> </div> </div> <script> //<![CDATA[ $(function () { // Initialize the jQuery File Upload widget: $('#fileupload').fileupload({ dataType: 'xml', sequentialUploads: true }); // 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' }; //]]> </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
s3_cors_fileupload-0.2.0 | lib/generators/s3_cors_fileupload/install/templates/views/erb/index.html.erb |