mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-01-15 05:41:25 +00:00
chill_document_edit_button: create new twig extension
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{% set button = {
|
||||
'changeIcon': 'fa-unlock',
|
||||
} %}{#
|
||||
'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>
|
||||
Reference in New Issue
Block a user