{% extends 'control/base.html' %}
{% load i18n %}

{% block heading %}{% trans 'Users' %}{% endblock %}

{% block subcontent %}
    <form class="search-form">
        <input type="text" name="s" value="{{ request.GET.s }}"> <button type="submit">{% trans 'Search' %}</button>
    </form>

    {% include 'control/fragment_pagination.html' %}

    <table>
        <tr>
            <th>{% trans 'ID' %}</th>
            <th>{% trans 'Username' %}</th>
        </tr>
        {% for user in users %}
            <tr>
                <td>{{ user.id }}</td>
                <td><a href="{% url 'control.users.detail' user=user.pk %}">{{ user.username }}</a></td>
            </tr>
        {% endfor %}
    </table>

    {% include 'control/fragment_pagination.html' %}
{% endblock %}
