Tweaks to stop current build form

This commit is contained in:
2015-07-20 23:29:37 +02:00
parent 749d7fa17a
commit 4d3da249cd

View File

@@ -40,6 +40,7 @@
{% macro stop_build(stop_url, authz, on_all=False, on_selected=False, builders=[], short=False, label="Build") %}
{% if not short %}
<div class="box">
<form method="post" name="stop_build" action="{{ stop_url }}" class='form-horizontal stopbuild'
{{ 'style="display:inline"' if short else '' }}>
{% if not short %}
@@ -65,14 +66,17 @@
{% endif %}
{% if not short %}
<div class="row">
<span class="label">Reason:</span>
<input type="text" name="comments"/>
</div>
{% endif %}
<p>
<span style="display: inline-block; width: 120pt;">Reason:</span>
<input type="text" name="comments"/>
</p>
<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 }}" />
{% endif %}
</form>
</div>
{% endif %}
{% endmacro %}