added action to reload twig invoice template (#3876)

This commit is contained in:
Kevin Papst
2023-02-25 19:10:29 +01:00
committed by GitHub
parent 266c4bad25
commit a9849fc6cf
6 changed files with 63 additions and 18 deletions

View File

@@ -11,8 +11,8 @@
{{ widgets.table_actions(event.actions) }}
{% endmacro %}
{% macro invoice_document(document, view) %}
{% macro invoice_document(document, inUse, view) %}
{% import "macros/widgets.html.twig" as widgets %}
{% set event = actions(app.user, 'invoice_document', view, {'document': document, 'token': csrf_token('invoice.delete_document')}) %}
{% set event = actions(app.user, 'invoice_document', view, {'document': document, 'in_use': inUse, 'token': csrf_token('invoice.delete_document')}) %}
{{ widgets.table_actions(event.actions) }}
{% endmacro %}