store search in session (#2735)
* 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
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% macro timesheets_team(view) %}
|
||||
{% macro timesheets_team(view, query) %}
|
||||
{% import "macros/widgets.html.twig" as widgets %}
|
||||
{% set event = actions(app.user, 'timesheets_team', view) %}
|
||||
{% set event = actions(app.user, 'timesheets_team', view, {'query': query}) %}
|
||||
{{ widgets.page_actions(event.actions) }}
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{% set allowMarkdown = false %}
|
||||
|
||||
{% block page_title %}{{ 'admin_timesheet.title'|trans }}{% endblock %}
|
||||
{% block page_actions %}{{ actions.timesheets_team('index') }}{% endblock %}
|
||||
{% block page_actions %}{{ actions.timesheets_team('index', query) }}{% endblock %}
|
||||
|
||||
{% block row_action %}
|
||||
{{- actions.timesheet_team(entry, 'index') -}}
|
||||
|
||||
Reference in New Issue
Block a user