wopi edit extension: button call collabora not in a modal, but in a page (twig way)

This commit is contained in:
2022-02-09 17:10:12 +01:00
parent 08f544f6ea
commit ce2f64acd0
3 changed files with 18 additions and 3 deletions

View File

@@ -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>