refactored invoice and export screens (#1046)
This commit is contained in:
13
templates/export/actions.html.twig
Normal file
13
templates/export/actions.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
{% macro export(view) %}
|
||||
{% import "macros/widgets.html.twig" as widgets %}
|
||||
|
||||
{% set actions = {} %}
|
||||
{% if view == 'preview' %}
|
||||
{% set actions = {'off': {'id':'export-toggle-button'}} %}
|
||||
{% endif %}
|
||||
{% set actions = actions|merge({'help': {'url': 'export.html'|docu_link, 'target': '_blank'}}) %}
|
||||
|
||||
{% set event = trigger('actions.export', {'actions': actions, 'view': view}) %}
|
||||
{{ widgets.page_actions(event.payload.actions) }}
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user