summaryrefslogtreecommitdiffstats
path: root/templates/claim.html
blob: 05f2e0b5e9c0bd315a8c5964d7fea07fc7f5d786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% extends "basic.html" %}
{% block content %}
  <h2>Claiming a device</h2>
  {% if not hwaddr %}
    <p class="error">Unknown MAC. Are you sure you're in the hackerspace?</p>
  {% else %}
  You are about to claim <strong>{{ hwaddr }}</strong> as <strong>{{ current_user.id }}</strong>. Do you wish to continue?
  <table>
    <form action="" method="post">
    <label><tr>
      <td>Device name (optional):</td>
      <td><input type="text" name="name" value="{{ name }}"></td>
    </tr></label>
    <tr>
      <td><input type="submit" value="yes"></td>
      </form>
      <td><a href="/"><button>no</button></button></td>
    </tr>
  </table>
  {% endif %}
{% endblock %}