1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% if @object.state == 'Final' %>
6 <script type="application/javascript">
7 function reset_form_cr_reuse() {
8 $('#use_existing').removeAttr('checked');
12 <%= link_to(choose_projects_path(id: "run-workflow-button",
13 title: 'Choose project',
15 action_name: 'Choose',
16 action_href: copy_container_request_path,
17 action_method: 'post',
18 action_data: {'selection_param' => 'work_unit[owner_uuid]',
19 'work_unit[template_uuid]' => @object.uuid,
20 'success' => 'redirect-to-created-object'
22 { class: "btn btn-primary btn-sm", title: "Run #{@object.name}", remote: true }
24 <i class="fa fa-fw fa-play"></i> Re-run...