Tweaks to stop current build form
This commit is contained in:
@@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
{% macro stop_build(stop_url, authz, on_all=False, on_selected=False, builders=[], short=False, label="Build") %}
|
{% macro stop_build(stop_url, authz, on_all=False, on_selected=False, builders=[], short=False, label="Build") %}
|
||||||
{% if not short %}
|
{% if not short %}
|
||||||
|
<div class="box">
|
||||||
<form method="post" name="stop_build" action="{{ stop_url }}" class='form-horizontal stopbuild'
|
<form method="post" name="stop_build" action="{{ stop_url }}" class='form-horizontal stopbuild'
|
||||||
{{ 'style="display:inline"' if short else '' }}>
|
{{ 'style="display:inline"' if short else '' }}>
|
||||||
{% if not short %}
|
{% if not short %}
|
||||||
@@ -65,14 +66,17 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not short %}
|
{% if not short %}
|
||||||
<div class="row">
|
<p>
|
||||||
<span class="label">Reason:</span>
|
<span style="display: inline-block; width: 120pt;">Reason:</span>
|
||||||
<input type="text" name="comments"/>
|
<input type="text" name="comments"/>
|
||||||
</div>
|
</p>
|
||||||
{% endif %}
|
<hr>
|
||||||
|
<p><input class="btn btn-default btn-success btn-squishy btn-block" type="submit" value="Stop {{ label }}" /></p>
|
||||||
|
{% else %}
|
||||||
<input class="btn btn-default btn-success btn-squishy" type="submit" value="Stop {{ label }}" />
|
<input class="btn btn-default btn-success btn-squishy" type="submit" value="Stop {{ label }}" />
|
||||||
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user