Implement deleting relays

This commit is contained in:
2022-07-29 22:11:34 +01:00
parent 654c9960ba
commit 7b97c96be3
4 changed files with 51 additions and 6 deletions

View File

@@ -65,6 +65,16 @@
</span>
</button>
{% endif %}
<button
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-delete="{% url 'threshold_irc_network_relay_del' relay|index:'net' relay|index:'id' %}"
hx-target="#relays"
hx-swap="outerHTML"
class="button is-danger is-small">
<span class="icon" data-tooltip="Delete">
<i class="fa-solid fa-xmark" aria-hidden="true"></i>
</span>
</button>
</td>
<td>
{{ relay.chans }}