diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/show.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/show.html.twig
index 3c1fe9dd7..73749dc29 100644
--- a/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/show.html.twig
+++ b/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/show.html.twig
@@ -50,16 +50,15 @@
{{ m.download_button(document.object, document.title) }}
- {% if chill_document_is_editable(document.object) %}
- {{ document.object|chill_document_edit_button }}
- {% endif %}
{% if is_granted('CHILL_ACCOMPANYING_COURSE_DOCUMENT_UPDATE', document) %}
-
- {{ 'Edit' | trans }}
-
+
{% endif %}
+ {% if chill_document_is_editable(document.object) %}
+ {{ document.object|chill_document_edit_button }}
+ {% endif %}
{% set workflows_frame = chill_entity_workflow_list('Chill\\DocStoreBundle\\Entity\\AccompanyingCourseDocument', document.id) %}
{% if workflows_frame is not empty %}
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 8a739061c..1bd895a0f 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,15 +1,11 @@
{% set button = {
- 'changeIcon': 'fa-unlock',
+ 'changeIcon': 'fa-magic',
+ 'changeClass': 'btn-primary'
} %}{#
- 'changeClass': 'btn-update'
'noText': false
- data-doc-title="{{ document.title|e('html_attr') }}"
- {{ dump() }}
-
#}
diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OpenWopiLink.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OpenWopiLink.vue
index 75fb18de5..81a30f120 100644
--- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OpenWopiLink.vue
+++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OpenWopiLink.vue
@@ -20,7 +20,7 @@
- {{ this.title }}
+ {{ title }}
@@ -73,7 +73,7 @@ export default {
},
title: {
type: String,
- required: true
+ required: false
},
type: {
type: String,
@@ -205,7 +205,7 @@ export default {
i18n: {
messages: {
fr: {
- Update_document: "Modifier le document",
+ Update_document: "Éditer en ligne",
save_and_quit: "Enregistrer et quitter",
loading: "Chargement de l'éditeur en ligne",
invalid_title: "Format incompatible",
diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig
index 588e2de0b..210d552e0 100644
--- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig
+++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig
@@ -6,7 +6,6 @@
{% block js %}
{{ parent() }}
-
{{ encore_entry_script_tags('mod_async_upload') }}
{{ encore_entry_script_tags('mod_pickentity_type') }}
{{ encore_entry_script_tags('mod_entity_workflow_subscribe') }}