vuko | 3cd087d | 2021-12-28 13:19:40 +0100 | [diff] [blame] | 1 | {% extends "basic.html" %} |
| 2 | {% block content %} |
| 3 | <a href="/">Back to homepage</a> |
| 4 | <h2>Account settings</h2> |
| 5 | {% for msg in get_flashed_messages(True) %} |
| 6 | <p class="{{ msg[0] }}">{{ msg[1] }}</p> |
| 7 | {% endfor %} |
| 8 | <h3>Claimed devices</h3> |
| 9 | <table class="devices"> |
| 10 | <tr> |
| 11 | <th>MAC</th> |
| 12 | <th>Device name</th> |
| 13 | <th>Visible</th> |
| 14 | <th>Toggle visibility</th> |
| 15 | <th>Delete</th> |
| 16 | </tr> |
| 17 | {% for device in devices %} |
| 18 | <tr> |
| 19 | <td>{{ device.hwaddr }}</td> |
| 20 | <td>{{ device.name }}</td> |
| 21 | {% if device.ignored %} |
| 22 | <td class="invisible">invisible</td> |
| 23 | <td><a href="devices/{{ device.hwaddr }}/show">make visible</a></td> |
| 24 | {% else %} |
| 25 | <td class="visible">visible</td> |
| 26 | <td><a href="devices/{{ device.hwaddr }}/hide">make invisible</a></td> |
| 27 | {% endif %} |
| 28 | <td><a href="devices/{{ device.hwaddr }}/delete">delete device</a></td> |
| 29 | </tr> |
| 30 | </tbody> |
| 31 | {% endfor%} |
| 32 | </table> |
| 33 | <p><a href="/claim">claim this device</a> |
| 34 | {% endblock %} |