Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 1b2aae3

Browse files
author
Dimitar Tasev
authored
Merge pull request #1253 from ISISScientificComputing/add_back_to_button
Makes the "Back to <instrument>" button always appear
2 parents c4d621f + b5c2df6 commit 1b2aae3

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

WebApp/autoreduce_webapp/templates/run_summary.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,12 @@ <h2>Reduction Job #{{ run.title }}</h2>
211211
<p class="text-center" id="warning_message">The reduce_vars.py script is missing for this instrument. Please create it before being able to submit re-runs.</p>
212212
</div>
213213
{% endif %}
214-
</div>
214+
</div>
215+
<div class="row col-md-12 my-2">
216+
<div class="text-center">
217+
<a href="{% url 'runs:list' run.instrument.name %}" class="btn btn-primary" id="cancel">Back to {{ run.instrument.name }} runs</a>
218+
</div>
219+
</div>
215220
{% endif %}
216221
<div class="run-history modal fade" tabindex="-1" role="dialog" aria-hidden="true">
217222
<div class="modal-dialog">

WebApp/autoreduce_webapp/templates/snippets/run_variables.html

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
</div>
88
</div>
99
<div class="panel-body collapse" id="rerun_form">
10-
<form id="run_variables" method="POST" action="{% url 'run_confirmation' instrument=instrument.name %}"
11-
class="form-horizontal">
10+
<form id="run_variables" method="POST" action="{% url 'run_confirmation' instrument=instrument.name %}" class="form-horizontal">
1211
{% csrf_token %}
1312
<input type="hidden" name="run_range" value="{{ run_number }}">
1413
<input type="hidden" name="run_version" value="{{ run_version }}">
@@ -25,7 +24,7 @@
2524
</a>
2625
</label>
2726
<div class="col-md-10">
28-
<input type="text" id="run_description" name="run_description" class="form-control"/>
27+
<input type="text" id="run_description" name="run_description" class="form-control" />
2928
</div>
3029
</div>
3130
<div class="js-variables-container">
@@ -35,23 +34,23 @@
3534
<div class="col-md-3">
3635
<div class="well well-sm">
3736
<div class="row">
38-
<div class="col-md-12"><h4>Additional Actions</h4></div>
37+
<div class="col-md-12">
38+
<h4>Additional Actions</h4>
39+
</div>
3940
</div>
4041
<div class="row">
4142
<ul class="js-form-actions">
4243
<li>
4344
<a href="#resetValues" id="resetValues">Reset variables to initial values used for this run</a>
44-
<a href="#" data-toggle="popover" data-html="true" data-content="Reset the values of the variables to the ones previously used for this run."
45-
data-trigger="hover click focus" data-placement="top" data-container="body">
46-
<i class="fa fa-info-circle"></i>
47-
</a>
45+
<a href="#" data-toggle="popover" data-html="true" data-content="Reset the values of the variables to the ones previously used for this run." data-trigger="hover click focus" data-placement="top" data-container="body">
46+
<i class="fa fa-info-circle"></i>
47+
</a>
4848
</li>
4949
{% if current_standard_variables %}
5050
<li>
5151
<a href="#currentScript" id="currentScript">Reset to values in the current reduce_vars script</a>
52-
<a href="#" data-toggle="popover" data-html="true" data-content="Reset to the values currently contained in the reduce_vars script."
53-
data-trigger="hover click focus" data-placement="top" data-container="body">
54-
<i class="fa fa-info-circle"></i></a>
52+
<a href="#" data-toggle="popover" data-html="true" data-content="Reset to the values currently contained in the reduce_vars script." data-trigger="hover click focus" data-placement="top" data-container="body">
53+
<i class="fa fa-info-circle"></i></a>
5554
</li>
5655
{% endif %}
5756
</ul>
@@ -69,11 +68,6 @@
6968
</div>
7069
</form>
7170
</div>
72-
<div class="row col-md-12 pt-2">
73-
<div class="text-center">
74-
<a href="{% url 'runs:list' instrument.name %}" class="btn btn-primary" id="cancel">Back to {{ instrument.name }} runs</a>
75-
</div>
76-
</div>
7771
</div>
7872

7973
<div class="hide">

0 commit comments

Comments
 (0)