Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / jobs / _rerun_job_with_options_popup.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <% @job = @object %>
6 <div id="jobRerunModal" class="modal" role="dialog" aria-labelledby="jobRerunTitle" aria-hidden="true">
7   <div class="modal-dialog">
8     <div class="modal-content">
9       <%= form_for(@job, method: :post, url: {controller: 'jobs', action: 'create'}) do |f| %>
10         <% [:script, :repository, :supplied_script_version, :nondeterministic].each do |field_sym| %>
11           <%= f.hidden_field(field_sym) %>
12         <% end %>
13         <% [:script_parameters, :runtime_constraints].each do |field_sym| %>
14           <%= f.hidden_field(field_sym, value: @job.send(field_sym).to_json) %>
15         <% end %>
16         <div class="modal-header">
17           <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
18           <div id="jobRerunTitle">
19             <div class="col-sm-6"> <h4 class="modal-title">Re-run job</h4> </div>
20           </div>
21           <br/>
22         </div>
23
24         <div class="modal-body">
25           <p>
26             If this job is part of a pipeline, that pipeline would not
27             know about the new job you are running.  If you want to
28             update your pipeline results, please re-run the pipeline
29             instead.
30           </p>
31           <p>
32             The inputs and parameters will be the same as the current
33             job.  Thus, the new job will not reflect any changes made
34             to the pipeline that initiated this job.
35           </p>
36           <div style="padding-left: 1em">
37             <% if (@job.supplied_script_version.blank? or
38                    (@job.supplied_script_version == @job.script_version)) %>
39               <%= f.hidden_field(:script_version) %>
40             <% else %>
41               <%= f.radio_button("script_version", @job.script_version) %>
42               <%= f.label(:script_version, "Use same script version as this run", value: @job.script_version) %>
43               <p style="padding-left: 1em"> Use the same script version as the current job.</p>
44
45               <%= f.radio_button(:script_version, @job.supplied_script_version) %>
46               <%= f.label(:script_version, "Use latest script version", value: @job.supplied_script_version) %>
47               <p style="padding-left: 1em"> Use the current commit indicated by '<%= @job.supplied_script_version %>' in the '<%= @job.repository %>' repository.</p>
48             <% end %>
49           </div>
50         </div>
51
52         <div class="modal-footer">
53           <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
54           <%= f.submit(value: "Run now", class: "btn btn-primary") %>
55         </div>
56       <% end %>
57     </div>
58   </div>
59 </div>