+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
<% @job = @object %>
-<div id="jobRerunModal" class="modal fade" role="dialog" aria-labelledby="jobRerunTitle" aria-hidden="true">
+<div id="jobRerunModal" class="modal" role="dialog" aria-labelledby="jobRerunTitle" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<%= form_for(@job, method: :post, url: {controller: 'jobs', action: 'create'}) do |f| %>
<%= f.hidden_field(field_sym, value: @job.send(field_sym).to_json) %>
<% end %>
<div class="modal-header">
- <button type="button" class="close" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">×</button>
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div id="jobRerunTitle">
<div class="col-sm-6"> <h4 class="modal-title">Re-run job</h4> </div>
</div>
</div>
<div class="modal-body">
- <p> If this job is part of a pipeline, that pipeline would not know about the new job you are running.
- If you want to update your pipeline results, please re-run the pipeline instead.
- <p> The inputs and parameters will be the same as the current job.
- Thus, the new job will not reflect any changes made to the pipeline that initiated this job. </p>
+ <p>
+ If this job is part of a pipeline, that pipeline would not
+ know about the new job you are running. If you want to
+ update your pipeline results, please re-run the pipeline
+ instead.
+ </p>
+ <p>
+ The inputs and parameters will be the same as the current
+ job. Thus, the new job will not reflect any changes made
+ to the pipeline that initiated this job.
+ </p>
<div style="padding-left: 1em">
<% if (@job.supplied_script_version.blank? or
(@job.supplied_script_version == @job.script_version)) %>
</div>
<div class="modal-footer">
- <button class="btn btn-default" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">Cancel</button>
+ <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
<%= f.submit(value: "Run now", class: "btn btn-primary") %>
</div>
<% end %>