blob: aedea84bb3e63b872724df31f352f7d66a507421 [file] [log] [blame]
vuko3cd087d2021-12-28 13:19:40 +01001{% extends "basic.html" %}
2{% block content %}
3 <h2>Claiming a device</h2>
4 {% if not hwaddr %}
5 <p class="error">Unknown MAC. Are you sure you're in the hackerspace?</p>
6 {% else %}
Wojtek Porczykb56b8fc2022-08-21 19:00:29 +02007 <p>
8 You are about to claim <strong>{{ hwaddr }}</strong> as
9 <strong>{{ current_user.id }}</strong>. Please make sure you have MAC
10 address randomisation configured per-network or turned off entirely.
11 </p>
vuko3cd087d2021-12-28 13:19:40 +010012 <table>
13 <form action="" method="post">
14 <label><tr>
15 <td>Device name (optional):</td>
16 <td><input type="text" name="name" value="{{ name }}"></td>
17 </tr></label>
18 <tr>
Wojtek Porczykb56b8fc2022-08-21 19:00:29 +020019 <td><input type="submit" value="Claim"></td>
vuko3cd087d2021-12-28 13:19:40 +010020 </form>
Wojtek Porczykb56b8fc2022-08-21 19:00:29 +020021 <td><a href="/"><button>Cancel</button></td>
vuko3cd087d2021-12-28 13:19:40 +010022 </tr>
23 </table>
24 {% endif %}
25{% endblock %}