blob: dccb1c6ae556c87863daeb46f1deeeb28d86e85e (
plain)
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
|
{% extends "base.html" %}
{% block content %}
<h1>This certainly is a page</h1>
<div class="hosts">
{% for host in hosts %}
<div class="host">
<h2>{{ host.fqdn }}</h2>
<form method="POST" action="/remove">
<input type="hidden" name="fqdn" value="{{ host.fqdn }}"/>
<dl>
<dt>Environment</dt>
<dd>{{ host.environment }}</dd>
<dt>Classes</dt>
<dd>
<ul>
{% for cls in host.classes %}
{% with id = 'r' + str(random.getrandbits(64)) %}
<li>
<input id="{{ id }}" type="checkbox" name="cls" value="{{ cls.class_name }}"/>
<label for="{{ id }}">{{ cls.class_name }}</label>
</li>
{% endwith %}
{% endfor %}
</ul>
</dd>
</dl>
<input type="submit" value="Remove Selected"/>
</form>
<div class="class-search"></div>
</div>
{% endfor %}
</div>
{% endblock %}
|