{% macro export(view) %} {% import "macros/widgets.html.twig" as widgets %} {% set actions = {'visibility': '#modal_export'} %} {% if view == 'preview' %} {% set actions = actions|merge({'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 %}