data-doc-title is a not required props

This commit is contained in:
Mathieu Jaumotte
2022-02-02 15:13:48 +01:00
parent 2af3de4f61
commit ef42227e6c
4 changed files with 10 additions and 16 deletions

View File

@@ -1,15 +1,11 @@
{% set button = {
'changeIcon': 'fa-unlock',
'changeIcon': 'fa-magic',
'changeClass': 'btn-primary'
} %}{#
'changeClass': 'btn-update'
'noText': false
data-doc-title="{{ document.title|e('html_attr') }}"
{{ dump() }}
#}
<span data-module="wopi-link"
data-wopi-url="{{ path('chill_wopi_file_edit', {'fileId': document.uuid}) }}"
data-doc-title="coucou"
data-doc-type="{{ document.type|e('html_attr') }}"
data-button="{{ button|json_encode }}"
></span>