{% extends "base.html" %}

{% block title %}CBWebReader - Users{% endblock %}

{% block content %}
<div class="container">
    <table class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
                <th>#</th>
                <th>Username</th>
                <th>Email</th>
                <th>Superuser</th>
            </tr>
        </thead>
        <tbody data-link="row" class="rowlink">
            {% for user in users %}
            <tr>
                <td>{{user.id}}</td>
                <td><a href="{% url 'user_details' user.id %}">{{user.username}}</a></td>
                <td>{{user.email}}</td>
                <td>{{user.is_superuser}}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
    <a class="btn btn-secondary" href="{% url 'add_users' %}" role="button">Add User</a>
</div>
{% endblock %}
{% block script %}

{% endblock %}