2018-03-31 22:28:32 +00:00
|
|
|
{% extends '@manage/users/master.twig' %}
|
2018-05-20 20:16:30 +00:00
|
|
|
{% from '@manage/macros.twig' import pagination %}
|
2018-03-31 22:28:32 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
2018-05-18 01:20:27 +00:00
|
|
|
<a href="?v=role" class="button">Create new Role</a>
|
2018-03-31 22:28:32 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container listing role-listing">
|
|
|
|
{% for role in manage_roles %}
|
2018-04-30 21:39:43 +00:00
|
|
|
<a href="?v=role&r={{ role.role_id }}" class="listing__entry role-listing__entry"{% if not role.role_colour|colour_get_inherit %} style="border-color: {{ role.role_colour|colour_get_css }}"{% endif %}>
|
2018-03-31 22:28:32 +00:00
|
|
|
<div class="listing__entry__content role-listing__entry__content">
|
|
|
|
{{ role.role_name }}
|
2018-05-16 02:58:21 +00:00
|
|
|
{{ role.users }} users
|
2018-03-31 22:28:32 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container container--center">
|
2018-05-20 20:16:30 +00:00
|
|
|
{{ pagination(manage_roles_count, manage_roles_range, manage_roles_offset, '?v=roles') }}
|
2018-03-31 22:28:32 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|