2 <div id="jobRerunModal" class="modal" role="dialog" aria-labelledby="jobRerunTitle" aria-hidden="true">
3 <div class="modal-dialog">
4 <div class="modal-content">
5 <%= form_for(@job, method: :post, url: {controller: 'jobs', action: 'create'}) do |f| %>
6 <% [:script, :repository, :supplied_script_version, :nondeterministic].each do |field_sym| %>
7 <%= f.hidden_field(field_sym) %>
9 <% [:script_parameters, :runtime_constraints].each do |field_sym| %>
10 <%= f.hidden_field(field_sym, value: @job.send(field_sym).to_json) %>
12 <div class="modal-header">
13 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
14 <div id="jobRerunTitle">
15 <div class="col-sm-6"> <h4 class="modal-title">Re-run job</h4> </div>
20 <div class="modal-body">
21 <p> If this job is part of a pipeline, that pipeline would not know about the new job you are running.
22 If you want to update your pipeline results, please re-run the pipeline instead.
23 <p> The inputs and parameters will be the same as the current job.
24 Thus, the new job will not reflect any changes made to the pipeline that initiated this job. </p>
25 <div style="padding-left: 1em">
26 <% if (@job.supplied_script_version.blank? or
27 (@job.supplied_script_version == @job.script_version)) %>
28 <%= f.hidden_field(:script_version) %>
30 <%= f.radio_button("script_version", @job.script_version) %>
31 <%= f.label(:script_version, "Use same script version as this run", value: @job.script_version) %>
32 <p style="padding-left: 1em"> Use the same script version as the current job.</p>
34 <%= f.radio_button(:script_version, @job.supplied_script_version) %>
35 <%= f.label(:script_version, "Use latest script version", value: @job.supplied_script_version) %>
36 <p style="padding-left: 1em"> Use the current commit indicated by '<%= @job.supplied_script_version %>' in the '<%= @job.repository %>' repository.</p>
41 <div class="modal-footer">
42 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
43 <%= f.submit(value: "Run now", class: "btn btn-primary") %>