{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "team/actions.html.twig" as actions %} {% import "macros/datatables.html.twig" as tables %} {% import "macros/toolbar.html.twig" as toolbar %} {% block page_title %}{{ 'teams.title'|trans({}, 'teams') }}{% endblock %} {% block page_search %}{{ toolbar.dropDownSearch(toolbarForm) }}{% endblock %} {% block page_actions %}{{ actions.teams('index') }}{% endblock %} {% block main %} {% if teams|length == 0 %} {{ widgets.callout('warning', 'error.no_entries_found') }} {% else %} {% set columns = { 'name': '', 'teamlead': '', 'user': {'class': 'hidden-xs', 'orderBy': false}, 'actions': 'actions alwaysVisible', } %} {% set tableName = 'admin_teams' %} {{ tables.datatable_header(tableName, columns, query, {'reload': 'kimai.teamUpdate'}) }} {% for team in teams %} {{ team.name }} {{ widgets.label_user(team.teamlead) }} {% for user in team.users %} {{ widgets.label_user(user) }}  {% endfor %} {{ actions.team(team, 'index') }} {% endfor %} {{ tables.data_table_footer(teams, 'admin_team_paginated') }} {% endif %} {% endblock %}