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:
Kevin Papst
2021-08-26 01:37:40 +02:00
committed by GitHub
parent 56524a9773
commit 98a3fc99a2
55 changed files with 365 additions and 81 deletions

View File

@@ -1,6 +1,6 @@
{% macro timesheets(view) %}
{% macro timesheets(view, query) %}
{% import "macros/widgets.html.twig" as widgets %}
{% set event = actions(app.user, 'timesheets', view) %}
{% set event = actions(app.user, 'timesheets', view, {'query': query}) %}
{{ widgets.page_actions(event.actions) }}
{% endmacro %}

View File

@@ -9,7 +9,7 @@
{% set allowMarkdown = true %}
{% block page_title %}{{ 'timesheet.title'|trans }}{% endblock %}
{% block page_actions %}{{ actions.timesheets('index') }}{% endblock %}
{% block page_actions %}{{ actions.timesheets('index', query) }}{% endblock %}
{% block row_action %}
{{- actions.timesheet(entry, 'index') -}}