vuko | 3cd087d | 2021-12-28 13:19:40 +0100 | [diff] [blame] | 1 | {% 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 %} |
| 7 | You are about to claim <strong>{{ hwaddr }}</strong> as <strong>{{ current_user.id }}</strong>. Do you wish to continue? |
| 8 | <table> |
| 9 | <form action="" method="post"> |
| 10 | <label><tr> |
| 11 | <td>Device name (optional):</td> |
| 12 | <td><input type="text" name="name" value="{{ name }}"></td> |
| 13 | </tr></label> |
| 14 | <tr> |
| 15 | <td><input type="submit" value="yes"></td> |
| 16 | </form> |
| 17 | <td><a href="/"><button>no</button></button></td> |
| 18 | </tr> |
| 19 | </table> |
| 20 | {% endif %} |
| 21 | {% endblock %} |