* bump version * removed not needed token, as it is already contained in the form Co-authored-by: Kevin Papst <kpapst@gmx.net>
22 lines
847 B
Twig
22 lines
847 B
Twig
{% macro timesheets(view, query) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% set event = actions(app.user, 'timesheets', view, {'query': query}) %}
|
|
{{ widgets.page_actions(event.actions) }}
|
|
{% endmacro %}
|
|
|
|
{% macro timesheet(timesheet, view, options) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% set event = actions(app.user, 'timesheet', view, {'timesheet': timesheet}) %}
|
|
{% if view == 'index' or view == 'custom' %}
|
|
{{ widgets.table_actions(event.actions) }}
|
|
{% else %}
|
|
{{ widgets.page_actions(event.actions) }}
|
|
{% endif %}
|
|
{% endmacro %}
|
|
|
|
{% macro timesheets_multi_update(view) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% set event = actions(app.user, 'timesheets_multi_update', view) %}
|
|
{{ widgets.page_actions(event.actions) }}
|
|
{% endmacro %}
|