{% 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 "macros/actions.html.twig" as actions %} {% set columns = { 'name': 'alwaysVisible', 'customer': 'hidden-xs', 'project': 'hidden-xs', 'comment': 'hidden-xs', 'visible': '', 'actions': 'actions alwaysVisible', } %} {% set tableName = 'activity_admin' %} {% block page_title %}{{ 'admin_activity.title'|trans }}{% endblock %} {% block page_subtitle %}{{ 'admin_activity.subtitle'|trans }}{% endblock %} {% block page_actions %}{{ actions.activities('index') }}{% endblock %} {% block main_before %} {{ toolbar.toolbar(toolbarForm, 'collapseActivityAdmin', showFilter) }} {{ tables.data_table_column_modal(tableName, columns) }} {% endblock %} {% block main %} {% if entries.count == 0 %} {{ widgets.callout('warning', 'error.no_entries_found') }} {% else %} {{ tables.data_table_header(tableName, columns, false, 'kimai.activityUpdate') }} {% for entry in entries %} {{ widgets.label_color_dot('activity', true, entry.name, null, entry.color) }} {% if entry.project and entry.project.customer %} {# only none-global activities have a project and customer assigned #} {{ widgets.label_customer(entry.project.customer, path('admin_customer_edit', {'id' : entry.project.customer.id})) }} {% endif %} {% if entry.project %} {# only none-global activities have a project and customer assigned #} {{ widgets.label_project(entry.project, path('admin_project_edit', {'id' : entry.project.id})) }} {% endif %} {{ entry.comment|comment2html }} {{ widgets.label_visible(entry.visible) }} {{ actions.activity(entry, 'index') }} {% endfor %} {{ tables.data_table_footer(entries, 'admin_activity_paginated') }} {% endif %} {% endblock %}