3235: Merge branch 'master' into 3235-top-nav-site-search
[arvados.git] / apps / workbench / app / views / projects / _show_tab_contents.html.erb
index 36f1907a3da8bf84a3fbba0bca92a8b37cd14146..df37d3e1c7051ad6b1da1fcb0af7fb77d6aecc91 100644 (file)
                   'data-selection-action' => 'remove',
                   'data-remote' => true,
                   'method' => 'delete'
+            %></li>
+                 <li><%= link_to "Move selected", '#',
+                         'data-href' => choose_projects_path(
+                                   title: 'Move to...',
+                                   editable: true,
+                                   action_name: 'Move',
+                                   action_href: move_items_project_path,
+                                   action_method: 'get',
+                                   action_data: {selection_param: 'target',
+                                                 success: 'page-refresh'}.to_json),
+                  'data-remote' => true,
+                  'data-selection-param-name' => 'move_items[]',
+                             'data-selection-action' => 'move'
             %></li>
         </ul>
       </div>