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