2018-08-15 01:12:58 +00:00
|
|
|
{% extends 'manage/users/master.twig' %}
|
2018-08-15 17:20:41 +00:00
|
|
|
{% from 'macros.twig' import pagination %}
|
2018-03-31 22:28:32 +00:00
|
|
|
|
2018-08-15 17:20:41 +00:00
|
|
|
{% block manage_content %}
|
2018-07-08 19:24:59 +00:00
|
|
|
{% if can_manage_roles %}
|
2019-01-24 20:54:24 +00:00
|
|
|
<a href="{{ url('manage-role-create') }}" class="input__button">Create new Role</a>
|
2018-07-08 19:24:59 +00:00
|
|
|
{% endif %}
|
2018-03-31 22:28:32 +00:00
|
|
|
|
2018-08-15 20:29:18 +00:00
|
|
|
<div class="userlist">
|
2018-03-31 22:28:32 +00:00
|
|
|
{% for role in manage_roles %}
|
2018-08-15 20:29:18 +00:00
|
|
|
<div class="userlist__item">
|
2018-09-23 16:31:47 +00:00
|
|
|
|
2018-08-15 20:29:18 +00:00
|
|
|
<div class="usercard">
|
2019-01-24 20:54:24 +00:00
|
|
|
<a href="{{ url('manage-role-edit', {'role': role.role_id}) }}"
|
2018-08-15 20:29:18 +00:00
|
|
|
class="usercard__background"></a>
|
|
|
|
|
|
|
|
<div class="usercard__container">
|
2018-09-23 16:31:47 +00:00
|
|
|
<div class="usercard__main">
|
2018-10-22 17:26:59 +00:00
|
|
|
<div class="avatar usercard__avatar"
|
2018-09-23 16:31:47 +00:00
|
|
|
style="{{ role.role_colour|html_colour('background-color') }}">
|
2018-08-15 20:29:18 +00:00
|
|
|
</div>
|
|
|
|
|
2018-09-23 16:31:47 +00:00
|
|
|
<div class="usercard__details">
|
|
|
|
<div class="usercard__name">
|
|
|
|
{{ role.role_name }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="usercard__info">
|
|
|
|
<span class="usercard__item usercard__item--title">
|
|
|
|
{{ role.role_title }}
|
|
|
|
</span>
|
2018-08-15 20:29:18 +00:00
|
|
|
|
2018-09-23 16:31:47 +00:00
|
|
|
<span class="usercard__item usercard__item--title">
|
|
|
|
{{ role.users|number_format }} users
|
|
|
|
</span>
|
|
|
|
</div>
|
2018-08-15 20:29:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-09-23 16:31:47 +00:00
|
|
|
|
|
|
|
<div class="usercard__actions">
|
2019-01-24 20:54:24 +00:00
|
|
|
<a class="usercard__action" href="{{ url('members-role', {'role': role.role_id}) }}">
|
2018-09-23 16:31:47 +00:00
|
|
|
Members
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-08-15 20:29:18 +00:00
|
|
|
</div>
|
2018-03-31 22:28:32 +00:00
|
|
|
</div>
|
2018-09-23 16:31:47 +00:00
|
|
|
|
2018-08-15 20:29:18 +00:00
|
|
|
</div>
|
2018-03-31 22:28:32 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
2019-01-03 00:33:02 +00:00
|
|
|
{{ pagination(manage_roles_pagination, '/manage/users.php', null, {'v': 'roles'}) }}
|
2018-03-31 22:28:32 +00:00
|
|
|
{% endblock %}
|