Sha256: ab1e732d08182be30130978fd07a844b3f103127781133aa6ae194a2eb4d749d

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 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.asset-box-uploader-fileinput{type: 'file', name: 'file', id: uid, multiple: 'multiple', disabled: disabled}
    - else
      %input.asset-box-uploader-fileinput{type: 'file', name: 'file', id: uid, 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

7 entries across 7 versions & 1 rubygems

Version Path
effective_assets-1.4.8 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.4.7 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.4.6 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.4.5 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.4.4 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.4.3 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.4.2 app/views/asset_box_input/_uploader.html.haml