Sha256: 7b3aa26b5412e27634cfc40905e3f89e4520c95293090c85d9891111781163a1

Contents?: true

Size: 911 Bytes

Versions: 8

Compression:

Stored size: 911 Bytes

Contents

.fileupload id=options[:container_id] class=options[:container_class]
  = options[:error]
  .fileupload-list.clearfix= render partial: asset_template, collection: assets
  - unless options[:disabled]
    .fileupload-upload
      .fileupload-button.pull-left
        .btn= options[:button_title] || I18n.t("admin.fileupload.button#{'s' if options[:multiple]}")
        = file_field_tag 'data', multiple: options[:multiple]
      .fileupload-edit-button.btn.pull-left= t('admin.actions.edit.link')

      .fileupload-info
        - if options[:extensions]
          .fileupload-info-extensions= options[:extensions].join(', ')
        .fileupload-info-max_size== "#{t('admin.fileupload.max_size')}: <b>#{options[:max_size]}</b> MB"

javascript:
  if (document.readyState == 'complete') {
    new AdminAssets(#{{js_options.to_json}});
  }
  else {
    $(function(){new AdminAssets(#{{js_options.to_json}});});
  }

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ab_admin-0.11.0 app/views/admin/fileupload/_container.html.slim
ab_admin-0.10.0 app/views/admin/fileupload/_container.html.slim
ab_admin-0.9.0 app/views/admin/fileupload/_container.html.slim
ab_admin-0.8.3 app/views/admin/fileupload/_container.html.slim
ab_admin-0.8.2 app/views/admin/fileupload/_container.html.slim
ab_admin-0.8.1 app/views/admin/fileupload/_container.html.slim
ab_admin-0.8.0 app/views/admin/fileupload/_container.html.slim
ab_admin-0.7.0 app/views/admin/fileupload/_container.html.slim