X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b6e28fbe905737bd0ea5bda5f4fd74fd259c58b1..177a1468e06674e7ff0ff0730b8607fbbd78000b:/apps/workbench/app/views/projects/_show_tab_contents.html.erb diff --git a/apps/workbench/app/views/projects/_show_tab_contents.html.erb b/apps/workbench/app/views/projects/_show_tab_contents.html.erb index c9c4dc06d1..6a889182d2 100644 --- a/apps/workbench/app/views/projects/_show_tab_contents.html.erb +++ b/apps/workbench/app/views/projects/_show_tab_contents.html.erb @@ -9,25 +9,45 @@ 'data-selection-param-name' => 'uuids[]', 'data-selection-action' => 'compare' %> +
  • <%= link_to "Copy selected", '#', + 'data-href' => choose_projects_path( + title: 'Copy selected items to...', + editable: true, + action_name: 'Copy', + action_href: actions_path, + action_method: 'post', + action_data_from_params: ['selection'], + action_data: { + copy_selections_into_project: true, + selection_param: 'uuid', + success: 'page-refresh'}.to_json), + 'data-remote' => true, + 'data-selection-param-name' => 'selection[]', + 'data-selection-action' => 'copy' + %>
  • +
  • <%= link_to "Move selected", '#', + 'data-href' => choose_projects_path( + title: 'Move selected items to...', + editable: true, + action_name: 'Move', + action_href: actions_path, + action_method: 'post', + action_data_from_params: ['selection'], + action_data: { + move_selections_into_project: true, + selection_param: 'uuid', + success: 'page-refresh'}.to_json), + 'data-remote' => true, + 'data-selection-param-name' => 'selection[]', + 'data-selection-action' => 'move' + %>
  • <%= link_to "Remove selected", '#', 'data-href' => url_for(action: :remove_items), 'data-selection-param-name' => 'item_uuids[]', 'data-selection-action' => 'remove', 'data-remote' => true, - 'method' => 'delete' - %>
  • -
  • <%= 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' + 'method' => 'delete', + 'data-toggle' => 'dropdown' %>
  • @@ -37,20 +57,23 @@ - +
    - - + + + + + - + - - + + + + +
    - - description - namedescription