app/views/smithy/assets/index.html.erb in smithycms-0.5.99.3 vs app/views/smithy/assets/index.html.erb in smithycms-0.6.0

- old
+ new

@@ -1,13 +1,29 @@ <% content_for :title, "Assets" %> <div class="well"> - <h2>Upload files</h2> - <%= render :partial => "upload_form" %> - <p>If you are using Firefox, Safari or Chrome, you can just drag and drop some files onto this page</p> + <%= semantic_form_for @asset_source, remote: true, multipart: true do |f| %> + <%= f.inputs do %> + <a id="choose-files" data-presigned-upload-field-url="<%= presigned_upload_field_asset_source_path(@asset_source) %>" class="btn btn-default" href="javascript:void(0);"><%= icon('cloud-upload') %> Upload files</a> + <div id="presigned_upload_field" style="display:none;"><%= f.attachment_field :assets_files, multiple: true, direct: true, presigned: true %></div> + <%= f.action :submit, label: 'Upload All', button_html: { style: 'display:none;' } %> + <% end %> + <% end %> </div> -<%= paginate @assets %> -<div class="thumbnails row" id="asset-thumbnails"> - <%= render @assets %> -</div> +<%= semantic_form_for 'Asset', as: "assets", url: batch_destroy_assets_path, remote: true do |f| %> + <%= f.action :submit, label: 'Delete Selected', button_html: { id: "delete_selected_assets", class: 'btn btn-danger', style: "display:none;" } %> + + <%= content_tag :table, id: "assets", class: "table table-striped responsive no-wrap display", data: { source: "#{ assets_url(format: "json") }" } do %> + <thead> + <tr> + <th style="width:20px;" class="column_delete"><%= check_box_tag "assets_table_select_all" %></th> + <th style="width:30px;">&nbsp;</th> + <th>Name</th> + <th>Size</th> + <th>Type</th> + <th>Actions</th> + </tr> + </thead> + <% end %> +<% end %>