{% extends 'layouts/admin.twig' %}

{% block content %}

    <ul class="breadcrumbs el">
        <li><a href="/admin/">Home</a> /</li>
        <li class="end">Admin User Roles</li>
    </ul>

    <h1>
        Admin User Roles
    </h1>

    {% include 'admin/roles/tabnav.twig' %}
    {% include 'admin/messages.twig' %}


    {% if roles|length > 0 %}
        <table class="manage-items">
            <tr>
                <th>
                    Role
                </th>
                <th>
                    Actions
                </th>
            </tr>
            <tbody class="tabular">
            {% for role in roles %}
                <tr>
                    <td>
                        <a href="/core/admin/roles/edit.php?id={{ role.id }}">
                            {{ role.name }}
                        </a>
                    </td>
                    <td class="center">
                        <a href="/core/admin/roles/edit.php?id={{ role.id }}"
                           class="edit">
                            <i class="fa fa-pencil"></i>
                        </a>
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p>
            There are currently no user roles defined
        </p>
    {% endif %}

{% endblock %}
