diff options
Diffstat (limited to 'app/templates/network_list.html')
-rw-r--r-- | app/templates/network_list.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app/templates/network_list.html b/app/templates/network_list.html new file mode 100644 index 0000000..f56c6dc --- /dev/null +++ b/app/templates/network_list.html @@ -0,0 +1,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 %} |