{% extends "demonstration/base.html" %}

{% block body %}
    <form action="" method="get" name="search-form">
        <table class="form-table">
            {{ form.as_table }}
            <tr>
                <th></th>
                <td><input type="submit" name="submit-form" value="Search"></td>
            </tr>
        </table>
    </form>
    <hr>
    <em>{{ results|length }} results.</em>
    <ul>
        {% for item in results %}
            <li>{{ item }}</li>
        {% empty %}
            <li>No item found.</li>
        {% endfor %}
    </ul>
{% endblock body %}
