mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 04:23:49 +00:00
wopi edit extension: button call collabora not in a modal, but in a page (twig way)
This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
{# DISABLED vue component
|
||||
<span data-module="wopi-link"
|
||||
data-wopi-url="{{ path('chill_wopi_file_edit', {'fileId': document.uuid}) }}"
|
||||
data-doc-type="{{ document.type|e('html_attr') }}"
|
||||
data-button="{{ options|json_encode }}"
|
||||
></span>
|
||||
|
||||
{{ chill_path_add_return_path('chill_wopi_file_edit', {'fileId': document.uuid}) }}
|
||||
#}
|
||||
|
||||
{# Twig way,
|
||||
TODO: une route, un template avec un header CHILL et un iframe
|
||||
#}
|
||||
<a href="{{ chill_path_add_return_path('chill_wopi_file_edit', {'fileId': document.uuid}) }}"
|
||||
class="btn btn-wopilink">
|
||||
{{ 'online_edit_document'|trans }}
|
||||
</a>
|
||||
|
||||
|
Reference in New Issue
Block a user