{% macro timesheets_team(view) %} {% import "macros/widgets.html.twig" as widgets %} {% set event = actions(app.user, 'timesheets_team', view) %} {{ widgets.page_actions(event.actions) }} {% endmacro %} {% macro timesheet_team(timesheet, view) %} {% import "macros/widgets.html.twig" as widgets %} {% set event = actions(app.user, 'timesheet_team', view, {'timesheet': timesheet}) %} {% if view == 'index' or view == 'custom' %} {{ widgets.table_actions(event.actions) }} {% else %} {{ widgets.page_actions(event.actions) }} {% endif %} {% endmacro %} {% macro timesheets_team_multi_update(view) %} {% import "macros/widgets.html.twig" as widgets %} {% set event = actions(app.user, 'timesheets_team_multi_update', view) %} {{ widgets.page_actions(event.actions) }} {% endmacro %}