2018-08-15 01:12:58 +00:00
|
|
|
{% extends 'manage/users/master.twig' %}
|
|
|
|
{% from 'manage/macros.twig' import pagination %}
|
2018-03-31 22:28:32 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2018-07-08 19:24:59 +00:00
|
|
|
{% if can_manage_roles %}
|
|
|
|
<div class="container">
|
2018-08-15 02:25:42 +00:00
|
|
|
<a href="?v=role" class="input__button">Create new Role</a>
|
2018-07-08 19:24:59 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-03-31 22:28:32 +00:00
|
|
|
|
|
|
|
<div class="container listing role-listing">
|
|
|
|
{% for role in manage_roles %}
|
2018-07-06 01:28:06 +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="{{ role.role_colour|html_colour({'border-color':'%s'}) }}"{% 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 %}
|