{% extends "base.html" %}
{% block content %}
<div class="form-box col-xs-12 col-sm-8 col-sm-offset-1">
    <h3>BlackList Users</h3>
    {% if msg %}
        <br><p><b>Result:</b> {{ msg }}</p>
    {% endif %}
    <br>
    <form method="post" action="" name="blacklist">
        {{ form.netid.label }}: {{ form.netid(class_="form-control") }}
        <br>
        {% for subfield in form.action %}
            {{ subfield }} {{ subfield.label }}
            <br>
        {% endfor %}
        <input class='btn btn-default' type="submit" value="Submit" /><br />
    </form>
</div>
{% endblock %}

{% extends "base.html" %}
{% block content %}
<div class="form-box col-xs-12 col-sm-8 col-sm-offset-1">
    <h3>BlackList Users</h3>
    {% if msg %}
        <br><p><b>Result:</b> {{ msg }}</p>
    {% endif %}
    <br>
    <form method="post" action="" name="blacklist">
        {{ form.netid.label }}: {{ form.netid(class_="form-control") }}
        <br>
        {% for subfield in form.action %}
            {{ subfield }} {{ subfield.label }}
            <br>
        {% endfor %}
        <input class='btn btn-default' type="submit" value="Submit" /><br />
    </form>

    <h3>Blacklist</h3>
    {% for user in banlist %}
        <article class="link-group clearfix">
            <div class="link-info" style="clear: both;">
                <div class="hover-controls">
                    <!-- TODO Update route -->
                    <form method="POST" action="#">
                        <input type="hidden" id="netid" name="netid" value="{{ user['netid'] }}" />
                        <input class="shrunk-button btn btn-default" type="submit" value="DELETE" />
                    </form>
                </div>
                <div class="title">
                    {{ user['netid'] }}
                </div>
                <div class="bottom-row">
                    Blocked by: {{ ','.join(user['banned_by'] }}
                </div>
            </div>
        </article>
    {% else %}
        <p>
            There are currently no blacklisted users.
        </p>
    {% endfor %}
</div>
{% endblock %}

Add list of blacklisted users
Add list of blacklisted users

Admins can now see a list of who has been blacklisted and delete them more
easily with a delete button.

The POST routes need to be updated and the add form still needs to be rehauled.
