{% 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 %} {% 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) }} {% endblock %} {% block main %} {% if entries.count == 0 %} {{ widgets.callout('warning', 'error.no_entries_found') }} {% else %} {% set columns = { 'name': 'alwaysVisible', 'customer': 'hidden-xs', 'project': 'hidden-xs', 'comment': 'hidden-xs', 'visible': '', 'actions': 'alwaysVisible', } %} {% set tableName = 'activity_admin' %} {{ tables.data_table_header(tableName, columns) }} {% for entry in entries %} {{ entry.name }} {% if entry.project and entry.project.customer %} {{ widgets.label_customer(entry.project.customer) }} {% else %} {# GLOBAL ACTIVTITY DOES NOT HAVE A CUSTOMER #} {% endif %} {% if entry.project %} {{ widgets.label_project(entry.project) }} {% else %} {# GLOBAL ACTIVTITY DOES NOT HAVE A PROJECT #} {% endif %} {{ entry.comment }} {{ widgets.label_visible(entry.visible) }} {{ actions.activity(entry, 'index') }} {% endfor %} {{ tables.data_table_footer(entries, 'admin_activity_paginated') }} {% endif %} {% endblock %}