X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/31d31c010bb6b5170e3962fdd50c6d393cfe6076..1008fd532fb9229b0fc0c1d9afb547bb6cfe4244:/apps/workbench/app/views/container_requests/_extra_tab_line_buttons.html.erb diff --git a/apps/workbench/app/views/container_requests/_extra_tab_line_buttons.html.erb b/apps/workbench/app/views/container_requests/_extra_tab_line_buttons.html.erb index fd79535517..7a9d68d983 100644 --- a/apps/workbench/app/views/container_requests/_extra_tab_line_buttons.html.erb +++ b/apps/workbench/app/views/container_requests/_extra_tab_line_buttons.html.erb @@ -1,10 +1,27 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% if @object.state == 'Final' %> - <%= link_to(copy_container_request_path('id' => @object.uuid), - class: 'btn btn-sm btn-primary', - title: 'Re-run', - data: {toggle: :tooltip, placement: :top}, title: 'This will make a copy and take you there. You can then make any needed changes and run it', - method: :post, - ) do %> - Re-run - <% end %> + + + <%= link_to(choose_projects_path(id: "run-workflow-button", + title: 'Choose project', + editable: true, + action_name: 'Choose', + action_href: copy_container_request_path, + action_method: 'post', + action_data: {'selection_param' => 'work_unit[owner_uuid]', + 'work_unit[template_uuid]' => @object.uuid, + 'success' => 'redirect-to-created-object' + }.to_json), + { class: "btn btn-primary btn-sm", title: "Run #{@object.name}", remote: true } + ) do %> + Re-run... + <% end %> + <% end %>