Files
travelrouter/app/templates/index.html
2021-07-10 09:24:42 +01:00

30 lines
914 B
HTML

{% extends "base.html" %}
{% block content %}
<h1>Networks</h1>
<table class="tg">
<thead>
<tr>
<th class="tg-0lax">SSID</th>
<th class="tg-0lax">Signal</th>
<th class="tg-0lax">Connected</th>
<th class="tg-0lax">Security</th>
<th class="tg-0lax">Action</th>
</tr>
{%- for row in index_table %}
<tr>
<td>{{row[0]}}</td>
<td>{{row[1]}}</td>
<td>{{row[2]}}</td>
<td>{{row[3]}}</td>
{% if row[2] == "Yes" %}
{{ "User is logged in" if loggedin else "User is not logged in" }}
<td><a href={{"/disconnect/" + row[0] }}>Disconnect</a></td>
{% else %}
<td><a href={{"/connect/" + row[0] + "&" + row[3]}}>Connect</a></td>
{% endif %}
</tr>
{%- endfor %}
</thead>
</table>
{% endblock %}