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

This commit is contained in:
Mathieu Jaumotte 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>

View File

@ -53,3 +53,6 @@ Document class: Classe de document
no records found:
Create new category: Créer une nouvelle catégorie
Back to the category list: Retour à la liste
# WOPI EDIT
online_edit_document: Éditer en ligne

View File

@ -8,7 +8,7 @@
<i v-if="isChangeIcon" class="fa me-2" :class="button.changeIcon"></i>
<span v-if="!noText">
{{ $t('Update_document') }}
{{ $t('online_edit_document') }}
</span>
</a>
@ -209,7 +209,7 @@ export default {
i18n: {
messages: {
fr: {
Update_document: "Éditer en ligne",
online_edit_document: "Éditer en ligne",
save_and_quit: "Enregistrer et quitter",
loading: "Chargement de l'éditeur en ligne",
invalid_title: "Format incompatible",