{% 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 "team/actions.html.twig" as actions %} {% block page_title %}{{ 'teams.title'|trans({}, 'teams') }}{% endblock %} {% block page_search %}{{ search.searchModal(toolbarForm) }}{% endblock %} {% block page_actions %}{{ actions.teams('index') }}{% endblock %} {% block main %} {% if teams|length == 0 %} {{ widgets.nothing_found('kimai.teamUpdate') }} {% else %} {% set columns = { 'name': {'class': ''}, 'teamlead': {'class': ''}, 'user': {'class': 'hidden-xs', 'orderBy': false}, 'actions': {'class': 'actions alwaysVisible'}, } %} {% set tableName = 'admin_teams' %} {{ tables.datatable_header(tableName, columns, query, {'reload': 'kimai.teamUpdate'}) }} {% for team in teams %}