Sha256: 54a0e7c1bd29159e6145bd751fd5d7a055024078a6b808e5524d86b4120adf53

Contents?: true

Size: 1.21 KB

Versions: 26

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-default.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

26 entries across 26 versions & 1 rubygems

Version Path
effective_assets-1.7.5 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.7.4 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.7.3 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.7.2 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.7.1 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.7.0 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.9 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.8 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.7 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.6 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.5 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.4 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.3 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.2 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.1 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.6.0 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.5.9 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.5.8 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.5.7 app/views/asset_box_input/_uploader.html.haml
effective_assets-1.5.6 app/views/asset_box_input/_uploader.html.haml