{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "macros/datatables.html.twig" as tables %} {% import "macros/search.html.twig" as search %} {% import "user/actions.html.twig" as actions %} {% set columns = { 'avatar': {'class': 'alwaysVisible w-min', 'title': null, 'orderBy': false}, 'alias': {'class': 'alwaysVisible'}, 'title': {'class': 'hidden-xs hidden-sm hidden'}, 'email': {'class': 'hidden-xs hidden-sm hidden', 'orderBy': false}, 'lastLogin': {'class': 'hidden-xs hidden-sm hidden', 'orderBy': false}, 'roles': {'class': 'hidden-sm', 'orderBy': false}, } %} {% for pref in preferences %} {% set columns = columns|merge({ ('mf_' ~ pref.name): {'title': pref.label|trans, 'class': 'hidden-xs hidden-sm', 'orderBy': false} }) %} {% endfor %} {% set columns = columns|merge({ 'team': {'class': 'text-center hidden-xs w-min', 'orderBy': false}, 'active': {'class': 'hidden-xs hidden w-min', 'orderBy': false}, 'actions': {'class': 'actions alwaysVisible'}, }) %} {% set tableName = 'user_admin' %} {% block page_title %}{{ 'admin_user.title'|trans }}{% endblock %} {% block page_search %}{{ search.searchModal(toolbarForm) }}{% endblock %} {% block page_actions %}{{ actions.users('index') }}{% endblock %} {% block main_before %} {{ tables.data_table_column_modal(tableName, columns, 'kimai.userUpdate') }} {% endblock %} {% block main %} {% if entries.count == 0 %} {{ widgets.nothing_found('kimai.userUpdate') }} {% else %} {{ tables.datatable_header(tableName, columns, query, {'reload': 'kimai.userUpdate'}) }} {% for entry in entries %}