1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% template = PipelineTemplate.find?(@object.pipeline_template_uuid) %>
6 <%= content_for :content_top do %>
9 <%= render partial: 'name_and_description' %>
12 <div class="alert alert-info col-sm-6">
13 This pipeline was created from the template <%= link_to_if_arvados_object template, friendly_name: true %><br />
14 <% if template.modified_at && (template.modified_at > @object.created_at) %>
15 Note: This template has been modified since this instance was created.
22 <% content_for :tab_line_buttons do %>
24 <div id="pipeline-instance-tab-buttons"
25 class="pane-loaded arv-log-event-listener arv-refresh-on-state-change"
26 data-pane-content-url="<%= url_for(params.permit!.merge(tab_pane: "tab_buttons")) %>"
27 data-object-uuid="<%= @object.uuid %>"
29 <%= render partial: 'show_tab_buttons', locals: {object: @object}%>
34 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>
36 <div id="clone-and-edit-modal-window" class="modal fade" role="dialog"
37 aria-labelledby="myModalLabel" aria-hidden="true">
38 <div class="modal-dialog">
39 <div class="modal-content">
41 <%= form_tag copy_pipeline_instance_path do |f| %>
43 <div class="modal-header">
44 <button type="button" class="close" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">×</button>
46 <div class="col-sm-6"> <h4 class="modal-title">Re-run pipeline</h4> </div>
51 <div class="modal-body">
52 <%= radio_button_tag(:script, "use_latest", true) %>
53 <%= label_tag(:script_use_latest, "Use latest script versions") %>
55 <%= radio_button_tag(:script, "use_same") %>
56 <%= label_tag(:script_use_same, "Use same script versions as this run") %>
60 <%= radio_button_tag(:components, "use_latest", true) %>
61 <%= label_tag(:components_use_latest, "Update components against template") %>
63 <%= radio_button_tag(:components, "use_same") %>
64 <%= label_tag(:components_use_same, "Use same components as this run") %>
68 <div class="modal-footer">
69 <button class="btn btn-default" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">Cancel</button>
70 <button type="submit" class="btn btn-primary" name="pipeline_instance[state]" value="RunningOnServer">Run now</button>
71 <button type="submit" class="btn btn-primary" name="pipeline_instance[state]" value="New">Copy and edit inputs</button>