|
|
|
@ -55,40 +55,40 @@
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="buttons">
|
|
|
|
|
{% if relay.enabled %}
|
|
|
|
|
{% if relay.enabled %}
|
|
|
|
|
<button
|
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
|
hx-get="{% url 'threshold_irc_network_relay_status' relay|index:'net' relay|index:'id' 0 %}"
|
|
|
|
|
hx-target="#relays"
|
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
|
class="button is-danger is-small">
|
|
|
|
|
<span class="icon" data-tooltip="Disable">
|
|
|
|
|
<i class="fa-solid fa-wifi-slash" aria-hidden="true"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</button>
|
|
|
|
|
{% else %}
|
|
|
|
|
<button
|
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
|
hx-get="{% url 'threshold_irc_network_relay_status' relay|index:'net' relay|index:'id' 1 %}"
|
|
|
|
|
hx-target="#relays"
|
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
|
class="button is-success is-small">
|
|
|
|
|
<span class="icon" data-tooltip="Enable">
|
|
|
|
|
<i class="fa-solid fa-wifi" aria-hidden="true"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</button>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<button
|
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
|
hx-get="{% url 'threshold_irc_network_relay_status' relay|index:'net' relay|index:'id' 0 %}"
|
|
|
|
|
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="Disable">
|
|
|
|
|
<i class="fa-solid fa-wifi-slash" aria-hidden="true"></i>
|
|
|
|
|
<span class="icon" data-tooltip="Delete">
|
|
|
|
|
<i class="fa-solid fa-xmark" aria-hidden="true"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</button>
|
|
|
|
|
{% else %}
|
|
|
|
|
<button
|
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
|
hx-get="{% url 'threshold_irc_network_relay_status' relay|index:'net' relay|index:'id' 1 %}"
|
|
|
|
|
hx-target="#relays"
|
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
|
class="button is-success is-small">
|
|
|
|
|
<span class="icon" data-tooltip="Enable">
|
|
|
|
|
<i class="fa-solid fa-wifi" aria-hidden="true"></i>
|
|
|
|
|
</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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|