2023-05-12 15:09:15 -07:00
|
|
|
<html>
|
2023-05-15 14:46:58 -07:00
|
|
|
<h1>Pools'n'Pumps Device</h1>
|
|
|
|
{% if not relays %}
|
|
|
|
<h2>No relays found.</h2>
|
|
|
|
{% else %}
|
|
|
|
<h2>Relays</h2>
|
2024-09-15 14:29:13 -07:00
|
|
|
<table>
|
|
|
|
<thead><th>Relay</th><th>State</th></thead>
|
|
|
|
<tbody>
|
|
|
|
{% for relay in relays %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="/relay/{{ relay.id }}">{{ relay.name }}</td></a></td>
|
|
|
|
<td>{{ "ON" if relay.state else "OFF"}}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-05-15 14:46:58 -07:00
|
|
|
{% endif %}
|
2024-09-15 14:29:13 -07:00
|
|
|
<br>
|
2023-05-15 14:46:58 -07:00
|
|
|
<a href="/relay/create">Create Relay</a>
|
2023-05-12 15:09:15 -07:00
|
|
|
</html>
|