app/views/admin/fileupload/_container.html.slim in ab_admin-0.3.6 vs app/views/admin/fileupload/_container.html.slim in ab_admin-0.4.0

- old
+ new

@@ -1,13 +1,14 @@ -= content_tag :div, id: element_id, class: css_class, data: container_data do - = error - .fileupload-drop-area - span= t('admin.fileupload.drop_here') - .fileupload-list.clearfix= render partial: "admin/fileupload/#{asset_template}", collection: assets - .file-types - span.fileupload-button - button.btn type="button" = button_title - .type-info - span.file_title== "#{file_title}. " - span.file_max_size== "#{t('admin.fileupload.max_size')}: <b>#{file_max_size}</b> MB" +.fileupload id=options[:container_id] class=options[:container_class] + = options[:error] + .fileupload-list.clearfix= render partial: asset_template, collection: assets + .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') -= init_js(js) + .fileupload-info + .fileupload-info-extensions= options[:extensions].join(', ') + .fileupload-info-max_size== "#{t('admin.fileupload.max_size')}: <b>#{options[:max_size]}</b> MB" + += init_js("new AdminAssets(#{js_options.to_json})") \ No newline at end of file