Sha256: d102bf5a3a54f078d73530ff67e05aeaaa07a2be2f8bc7face5072f54ccd1f8d

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

.uploads
.asset-box-uploader{:id => "s3_#{uid}", :class => ('drop-files' if drop_files) }
  = s3_uploader_fields(:aws_acl => aws_acl)

  - if drop_files
    %p= drop_files_help_text

  %span.btn.btn-success.fileinput-button
    %i.glyphicon.glyphicon-upload
    %span= btn_label
    - if limit > 1
      %input{:type => 'file', :name => 'file', :multiple => 'multiple', :disabled => disabled}
    - else
      %input{:type => 'file', :name => 'file', :disabled => disabled}

  = render :partial => progress_bar_partial

  %script{:type => 'text/javascript'}
    :erb

      $("#s3_<%= uid %>").S3Uploader({
        url: '<%= s3_uploader_url %>',
        progress_bar_target: $("#s3_<%= uid %>").siblings('.uploads').first(),
        progress_bar_template: $("#s3_<%= uid %>").children("script[type='text/x-tmpl']").first(),
        remove_completed_progress_bar: true,
        allow_multiple_files: <%= limit > 1 %>,
        file_types: '<%= [file_types].flatten.join('|').to_s %>',
        create_asset_url: '<%= effective_assets.s3_uploads_url %>',
        update_asset_url: '<%= effective_assets.s3_uploads_url %>/:id',
        dropZone: $("#s3_<%= uid %>").parent()
      });

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_assets-1.4.1 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.4.0 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.3.2 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.3.1 app/views/asset_box_input/_uploader.html.haml