diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/Button/wopi_edit_document.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/Button/wopi_edit_document.html.twig index 1562effc7..787b58ce7 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/Button/wopi_edit_document.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/Button/wopi_edit_document.html.twig @@ -1,6 +1,18 @@ +{# DISABLED vue component + + {{ 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 +#} + + {{ 'online_edit_document'|trans }} + diff --git a/src/Bundle/ChillDocStoreBundle/translations/messages.fr.yml b/src/Bundle/ChillDocStoreBundle/translations/messages.fr.yml index 96a3821b9..f438731d4 100644 --- a/src/Bundle/ChillDocStoreBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillDocStoreBundle/translations/messages.fr.yml @@ -52,4 +52,7 @@ Id inside bundle: Identifiant 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 \ No newline at end of file +Back to the category list: Retour à la liste + +# WOPI EDIT +online_edit_document: Éditer en ligne diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OpenWopiLink.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OpenWopiLink.vue index 46124c179..ec907e3df 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OpenWopiLink.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OpenWopiLink.vue @@ -8,7 +8,7 @@ - {{ $t('Update_document') }} + {{ $t('online_edit_document') }} @@ -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",