aboutsummaryrefslogtreecommitdiff
path: root/app/templates/network_list.html
blob: f56c6dc2392f82f20ad81272e0974239f41e9470 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% extends 'base.html' %}

{% block content %}
<h1>Managed Network Subnets</h1>

<table>
  <thead>
    <tr>
      <th scope="col">ID</th>
      <th scope="col">Subnet</th>
      <th scope="col">Description</th>
      <th scope="col">Manager</th>
      <th scope="col">Delete</th>
    </tr>
  </thead>
  <tbody>
    {% for n in nets %}
    <tr>
      <td>{{n.id}}</td>
      <td>{{n.subnet}}</td>
      <td>{{n.description}}</td>
      <td>{{n.manager_id}}</td>
      <td><a href="{{url_for('manage.del_net', id=n.id)}}">Delete</a></td>
    </tr>
    {% endfor %}
  </tbody>
</table>

<p>Want to add another one?</p>
<form method="POST">
  {{form.csrf_token}}
  <div>
    {{form.description.label}} {{form.description}}
  </div>
  <div>
    {{form.subnet.label}} {{form.subnet}}
  </div>
  <div>
    {{form.submit}}
  </div>
 </form>
{% endblock %}