Allow deleting requisitions
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
<th>aggregator</th>
|
||||
<th>payees</th>
|
||||
<th>throughput</th>
|
||||
<th>actions</th>
|
||||
</thead>
|
||||
{% for item in requisitions %}
|
||||
<tr>
|
||||
@@ -25,6 +26,22 @@
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>{{ item.throughput }}</td>
|
||||
<td>
|
||||
<button
|
||||
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
||||
hx-delete="{% url 'requisition_delete' type=type pk=item.id %}"
|
||||
hx-trigger="click"
|
||||
hx-target="#modals-here"
|
||||
hx-swap="innerHTML"
|
||||
hx-confirm="Are you sure you wish to delete requisition {{ item.id }}?"
|
||||
class="button">
|
||||
<span class="icon-text">
|
||||
<span class="icon">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
</span>
|
||||
</span>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user