{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "macros/datatables.html.twig" as tables %} {% import "macros/toolbar.html.twig" as toolbar %} {% import "project/actions.html.twig" as actions %} {% set columns = { 'name': {'class': 'alwaysVisible'}, 'customer': {'class': 'hidden-xs'}, 'comment': {'class': 'hidden-xs hidden-sm', 'title': 'label.description'|trans}, 'orderNumber': {'class': 'hidden-xs hidden-sm hidden'}, 'orderDate': {'class': 'hidden-xs hidden-sm hidden'}, 'start': {'class': 'hidden-xs hidden-sm hidden', 'title': 'label.project_start'|trans}, 'end': {'class': 'hidden-xs hidden-sm hidden', 'title': 'label.project_end'|trans}, } %} {% for field in metaColumns %} {% set columns = columns|merge({ ('mf_' ~ field.name): {'title': field.label|trans, 'class': 'hidden-xs hidden-sm', 'orderBy': false} }) %} {% endfor %} {% set columns = columns|merge({ 'team': {'class': 'text-center w-min', 'orderBy': false}, 'visible': {'class': 'text-center hidden w-min'}, 'actions': {'class': 'actions alwaysVisible'}, }) %} {% set tableName = 'project_admin' %} {% block page_title %}{{ 'admin_project.title'|trans }}{% endblock %} {% block page_search %}{{ toolbar.dropDownSearch(toolbarForm) }}{% endblock %} {% block page_actions %}{{ actions.projects('index') }}{% endblock %} {% block main_before %} {{ tables.data_table_column_modal(tableName, columns) }} {% endblock %} {% block main %} {% if entries.count == 0 %} {{ widgets.nothing_found('kimai.projectUpdate kimai.projectTeamUpdate') }} {% else %} {{ tables.datatable_header(tableName, columns, query, {'reload': 'kimai.projectUpdate kimai.projectTeamUpdate'}) }} {% for entry in entries %}