admin: add button to retry task

This commit is contained in:
Jens Langhammer
2020-10-16 14:10:27 +02:00
parent c5226fd0e8
commit 482da81522
7 changed files with 97 additions and 12 deletions

View File

@ -24,6 +24,7 @@
<th role="columnheader" scope="col">{% trans 'Last Status' %}</th>
<th role="columnheader" scope="col">{% trans 'Status' %}</th>
<th role="columnheader" scope="col">{% trans 'Messages' %}</th>
<th role="cell"></th>
</tr>
</thead>
<tbody role="rowgroup">
@ -62,6 +63,11 @@
</div>
{% endfor %}
</td>
<td>
<button is="action-button" class="pf-c-button pf-m-primary" url="{% url 'passbook_api:admin_system_tasks-retry' pk=task.task_name %}">
{% trans 'Retry Task' %}
</button>
</td>
</tr>
{% endfor %}
</tbody>