Use one big form for priority inc/dec buttons

This commit is contained in:
Joscha 2023-08-17 23:20:44 +02:00
parent a97b229e7d
commit ad396722a0

View file

@ -30,7 +30,8 @@
<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>
<tr>
<th>commit</th>
@ -49,10 +50,9 @@
</td>
<td>
{{ task.priority }}
[<form method="post" action="{{ task.link_increase }}"><input type="hidden" name="hash"
value="{{ task.hash }}"><button title="Increase priority by 1">inc</button></form>/<form
method="post" action="{{ task.link_decrease }}"><input type="hidden" name="hash"
value="{{ task.hash }}"><button title="Decrease priority by 1">dec</button></form>]
[<button title="Increase priority by 1" formaction="{{ task.link_increase }}" name="hash"
value="{{ task.hash }}">inc</button>/<button title="Decrease priority by 1"
formaction="{{ task.link_decrease }}" name="hash" value="{{ task.hash }}">dec</button>]
</td>
{% if task.workers.is_empty() %}
<td>-</td>
@ -63,3 +63,4 @@
{% endfor %}
</tbody>
</table>
</form>