4036: when files in a collection are combined, create the new collection in the origi...
[arvados.git] / apps / workbench / app / views / collections / _show_recent.html.erb
index 15e97c130b4844dd649c79e2dfb6b9acd14a911c..c958b290e8600c8b789b49ad21d06186873bd078 100644 (file)
@@ -4,11 +4,11 @@
       <div class="btn-group btn-group-sm">
         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
         <ul class="dropdown-menu" role="menu">
-          <li><%= link_to "Combine selections into a new collection", '/combine_selected',
-                  'data-href' => url_for('/combine_selected'),
+          <li><%= link_to "Create new collection with selected collections", '#',
+                  'data-href' => combine_selected_path,
                   'data-selection-param-name' => 'selection[]',
-                  'data-selection-action' => 'combine',
-                  'data-remote' => true,
+                  'data-selection-action' => 'combine-collections',
+                  'method' => 'post',
                   'data-toggle' => 'dropdown'
             %></li>
         </ul>
@@ -23,8 +23,6 @@
 
 <%= form_tag do |f| %>
 
-</div>
-
 <table id="collections-index" class="topalign table table-condensed table-fixedlayout"> <!-- table-fixed-header-row -->
   <colgroup>
     <col width="10%" />
@@ -49,6 +47,8 @@
 
 <% end %>
 
+</div>
+
 <%= render partial: "paging", locals: {results: @collections, object: @object} %>
 
 <% content_for :footer_js do %>