This commit is contained in:
Silo
2026-02-20 16:52:22 +00:00
parent 578d35b965
commit c3ad189448
15 changed files with 957 additions and 1518 deletions

View File

@@ -2,15 +2,17 @@
{% block content %}
<h1>Networks</h1>
<table class="tg">
<table class="table">
<thead>
<tr>
<th class="tg-0lax">SSID</th>
<th class="tg-0lax">Quality</th>
<th class="tg-0lax">Connected</th>
<th class="tg-0lax">Security</th>
<th class="tg-0lax">Action</th>
<th scope="col">SSID</th>
<th scope="col">Quality</th>
<th scope="col">Connected</th>
<th scope="col">Security</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
{%- for row in networks %}
<tr>
<td> {{ row['SSID'] }} </td>
@@ -19,14 +21,13 @@
<td> {{ row['WPA'] }} </td>
{% if row["Connected"] == "Yes" %}
<!-- {{ "User is logged in" if loggedin else "User is not logged in" }} -->
<td><a href={{"/disconnect/" + row["SSID"] }}>Disconnect</a></td>
<td><a href={{"/disconnect/" + row["SSID"] }} class="btn btn-secondary">Disconnect</a></td>
{% else %}
<td><a href={{"/connect/" + row["SSID"] + "&" + row["WPA"]}}>Connect</a></td>
<td><a href={{"/connect/" + row["SSID"] + "&" + row["WPA"]}} class="btn btn-primary">Connect</a></td>
{% endif %}
</tr>
{%- endfor %}
</thead>
</tbody>
</table>
{% endblock %}