* allow to detect used query filters * allow to set label in action buttons * allow to reset last search from session * migrate invoice archive to new search system * display number of used search filters
16 lines
633 B
Twig
16 lines
633 B
Twig
{% macro activities(view, query) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% set event = actions(app.user, 'activities', view, {'query': query}) %}
|
|
{{ widgets.page_actions(event.actions) }}
|
|
{% endmacro %}
|
|
|
|
{% macro activity(activity, view, isTable) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% set event = actions(app.user, 'activity', view, {'activity': activity}) %}
|
|
{% if view == 'index' or view == 'custom' or isTable is not null %}
|
|
{{ widgets.table_actions(event.actions) }}
|
|
{% else %}
|
|
{{ widgets.page_actions(event.actions) }}
|
|
{% endif %}
|
|
{% endmacro %}
|