mirror of
https://github.com/kevinpapst/kimai2.git
synced 2024-12-22 12:18:29 +00:00
19 lines
897 B
Twig
19 lines
897 B
Twig
|
|
{% macro invoice(invoice, view) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% set event = actions(app.user, 'invoice', view, {'invoice': invoice, 'token': csrf_token('invoice.status')}) %}
|
|
{{ widgets.table_actions(event.actions) }}
|
|
{% endmacro %}
|
|
|
|
{% macro invoice_template(template, view) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% set event = actions(app.user, 'invoice_template', view, {'template': template, 'token': csrf_token('invoice.delete_template')}) %}
|
|
{{ widgets.table_actions(event.actions) }}
|
|
{% endmacro %}
|
|
|
|
{% macro invoice_document(document, inUse, view) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% 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 %}
|