{% extends 'base.html.twig' %} {% import "macros/datatables.html.twig" as tables %} {% import "macros/widgets.html.twig" as widgets %} {% import "AvanzuAdminThemeBundle:layout:macros.html.twig" as macro %} {% block page_title %}{{ 'admin_user.title'|trans }}{% endblock %} {% block page_subtitle %}{{ 'admin_user.subtitle'|trans }}{% endblock %} {% block main %} {% if entries.count > 0 %} {{ tables.data_table_header({ 'label.id': '', 'label.alias': 'bookmark-o', 'label.username': 'user', 'label.email': 'envelope-o', 'label.title': 'graduation-cap', 'label.active': 'lock', 'label.roles': 'users', 'label.actions': 'pencil-square-o', }) }} {% for entry in entries %} {{ entry.id }} {{ entry.alias }} {{ entry.username }} {{ entry.email }} {{ entry.title }} {{ widgets.label_visible(entry.active) }} {{ entry.roles|join(',')|trans }} {{ widgets.button_group({ 'edit': path('user_profile', {'username' : entry.username}), 'trash': path('user_profile_delete', {'username' : entry.username}) }) }} {% endfor %} {{ tables.data_table_footer(entries, 'admin_user_paginated') }} {% else %} {{ widgets.callout('warning', 'error.no_entries_found') }} {% endif %} {% endblock %}