Sha256: 14934a679a1efabadfc3c9934ede277e5c55a2495f6cf447c3f7f5e44b23fe96
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 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_uploaded' %> <%# render 'template_download' %> </div> </div> <script> //<![CDATA[ $(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' }; //]]> </script>
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/erb/index.html.erb |