{% extends 'user/master.twig' %} {% from 'macros.twig' import container_title %} {% from 'user/macros.twig' import user_card %} {% set url_role = role.id > 1 ? role.id : 0 %} {% set url_sort = order_field == order_default ? '' : order_field %} {% set url_direction = order_direction == 'asc' ? '' : order_direction %} {% set canonical_url = url('user-list', { 'role': url_role, 'sort': url_sort, 'direction': url_direction, 'page': users_pagination.page|default(0) > 2 ? users_pagination.page : 0, }) %} {% set title = role.id == 1 ? 'Members' : 'Role ยป ' ~ role.name %} {% set manage_link = url('manage-users') %} {% macro member_nav(roles, role_id, orders, order, directions, direction, users_pagination, url_role, url_sort, url_direction) %} {% from 'macros.twig' import pagination %} {% from '_layout/input.twig' import input_select %}
{% endmacro %} {% block content %} {% from _self import member_nav %} {% set member_nav = member_nav( roles, role.id, order_fields, order_field, order_directions, order_direction, users_pagination, url_role, url_sort, url_direction ) %}