Files
travelrouter-old/app/templates/index.html
2026-02-20 16:52:22 +00:00

33 lines
959 B
HTML

{% extends "base.html" %}
{% block content %}
<h1>Networks</h1>
<table class="table">
<thead>
<tr>
<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>
<td> {{ row['Signal'] }} </td>
<td> {{ row['Connected'] }} </td>
<td> {{ row['WPA'] }} </td>
{% if row["Connected"] == "Yes" %}
<td><a href={{"/disconnect/" + row["SSID"] }} class="btn btn-secondary">Disconnect</a></td>
{% else %}
<td><a href={{"/connect/" + row["SSID"] + "&" + row["WPA"]}} class="btn btn-primary">Connect</a></td>
{% endif %}
</tr>
{%- endfor %}
</tbody>
</table>
{% endblock %}