Implement button to enable authentication for relay

This commit is contained in:
2022-08-13 22:25:42 +01:00
parent d3dd070db0
commit 985705dfa4
4 changed files with 50 additions and 0 deletions

View File

@@ -123,6 +123,18 @@
</span>
</button>
</div>
<div class="nowrap-child">
<button
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-post="{% url 'threshold_irc_network_relay_auth' relay|index:'net' relay|index:'id' %}"
hx-target="#relays"
hx-swap="outerHTML"
class="button is-info">
<span class="icon" data-tooltip="Enable authentication">
<i class="fa-solid fa-passport" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
</div>
</td>