Use one big form for priority inc/dec buttons
This commit is contained in:
parent
a97b229e7d
commit
ad396722a0
1 changed files with 34 additions and 33 deletions
|
|
@ -30,7 +30,8 @@
|
||||||
|
|
||||||
<h2>Queue ({{ tasks.len() }})</h2>
|
<h2>Queue ({{ tasks.len() }})</h2>
|
||||||
|
|
||||||
<table id="queue" class="queue-commits" data-count="{{ tasks.len() }}">
|
<form class="queue-commits" method="post">
|
||||||
|
<table id="queue" data-count="{{ tasks.len() }}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>commit</th>
|
<th>commit</th>
|
||||||
|
|
@ -49,10 +50,9 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ task.priority }}
|
{{ task.priority }}
|
||||||
[<form method="post" action="{{ task.link_increase }}"><input type="hidden" name="hash"
|
[<button title="Increase priority by 1" formaction="{{ task.link_increase }}" name="hash"
|
||||||
value="{{ task.hash }}"><button title="Increase priority by 1">inc</button></form>/<form
|
value="{{ task.hash }}">inc</button>/<button title="Decrease priority by 1"
|
||||||
method="post" action="{{ task.link_decrease }}"><input type="hidden" name="hash"
|
formaction="{{ task.link_decrease }}" name="hash" value="{{ task.hash }}">dec</button>]
|
||||||
value="{{ task.hash }}"><button title="Decrease priority by 1">dec</button></form>]
|
|
||||||
</td>
|
</td>
|
||||||
{% if task.workers.is_empty() %}
|
{% if task.workers.is_empty() %}
|
||||||
<td>-</td>
|
<td>-</td>
|
||||||
|
|
@ -63,3 +63,4 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</form>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue