Sha256: f1a5715e6c15b30faebf1ce738959c6692ddd97e37cf48745a7c48991b4a2148

Contents?: true

Size: 1.24 KB

Versions: 3

Compression:

Stored size: 1.24 KB

Contents

<%= stylesheet_link_tag '//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap-combined.min.css' %>

<div style="padding: 10px;">
  <h2>Upload file</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

3 entries across 3 versions & 1 rubygems

Version Path
s3_cors_fileupload-0.1.5 lib/generators/s3_cors_fileupload/install/templates/views/erb/index.html.erb
s3_cors_fileupload-0.1.4 lib/generators/s3_cors_fileupload/install/templates/views/index.html.erb
s3_cors_fileupload-0.1.2 lib/generators/s3_cors_fileupload/install/templates/views/index.html.erb