2020-05-21 18:33:58 +02:00
|
|
|
{% extends "sidebar.html" %}
|
|
|
|
{% block body%}
|
|
|
|
|
|
|
|
<div class="container">
|
2020-05-22 00:10:16 +02:00
|
|
|
<div style="font-weight: bold;width: 15rem; margin: 1rem">Device ID</div>
|
2020-05-24 13:26:41 +02:00
|
|
|
<div style="font-weight: bold;width: 10rem; margin: 1rem; padding-right: 4rem">Link Status</div>
|
|
|
|
<div style="font-weight: bold;width: 4rem; margin: 1rem">Action</div>
|
2020-05-21 18:33:58 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% for item in devices %}
|
|
|
|
<div class="container">
|
2020-05-24 13:26:41 +02:00
|
|
|
<!--device id-->
|
2020-05-28 12:00:05 +02:00
|
|
|
<div style="width: 15rem; margin: 1rem;">{{ item.deviceName }}</div>
|
2020-05-21 18:33:58 +02:00
|
|
|
|
2020-05-24 13:26:41 +02:00
|
|
|
<!--link status-->
|
|
|
|
<div style="width: 10rem; margin: 1rem; padding-right: 4rem">
|
2020-05-28 12:00:05 +02:00
|
|
|
{% if item.connection %}
|
|
|
|
Connected
|
|
|
|
{% else %}
|
|
|
|
Not Connected
|
|
|
|
{% endif %}
|
2020-05-21 18:33:58 +02:00
|
|
|
</div>
|
|
|
|
|
2020-05-24 13:26:41 +02:00
|
|
|
<!--action button-->
|
|
|
|
<div style="width: 4rem; margin: 1rem;">
|
2020-05-28 12:00:05 +02:00
|
|
|
<form action="" method="post">
|
|
|
|
<input type="hidden" name="device" value={{ item.deviceName }}>
|
|
|
|
<input type="submit" name="submit" value="Unlink">
|
|
|
|
</form>
|
2020-05-21 18:33:58 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
<form action="" method="post">
|
2020-05-24 13:26:41 +02:00
|
|
|
<div class="container grey" style="margin-top: 3rem;">
|
|
|
|
<div>{{ form.hidden_tag() }}</div>
|
2020-05-28 12:00:05 +02:00
|
|
|
<div style="width: 7rem; margin: 1rem">{{ form.deviceName.label }}</div>
|
|
|
|
<div style="width: 12rem; margin: 1rem">{{ form.deviceName(size=24) }}</div>
|
2020-05-24 13:26:41 +02:00
|
|
|
<div style="with: 7rem; margin: 1rem">{{ form.submit() }}</div>
|
2020-05-28 15:43:51 +02:00
|
|
|
{% for error in form.deviceName.errors %}
|
|
|
|
<span style="color: red;">[{{ error }}]</span>
|
|
|
|
{% endfor %}
|
2020-05-21 18:33:58 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{% endblock %}
|