mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
wopi edit extension: button call collabora not in a modal, but in a page (twig way)
This commit is contained in:
parent
08f544f6ea
commit
ce2f64acd0
@ -1,6 +1,18 @@
|
|||||||
|
{# DISABLED vue component
|
||||||
<span data-module="wopi-link"
|
<span data-module="wopi-link"
|
||||||
data-wopi-url="{{ path('chill_wopi_file_edit', {'fileId': document.uuid}) }}"
|
data-wopi-url="{{ path('chill_wopi_file_edit', {'fileId': document.uuid}) }}"
|
||||||
data-doc-type="{{ document.type|e('html_attr') }}"
|
data-doc-type="{{ document.type|e('html_attr') }}"
|
||||||
data-button="{{ options|json_encode }}"
|
data-button="{{ options|json_encode }}"
|
||||||
></span>
|
></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>
|
||||||
|
|
||||||
|
@ -53,3 +53,6 @@ Document class: Classe de document
|
|||||||
no records found:
|
no records found:
|
||||||
Create new category: Créer une nouvelle catégorie
|
Create new category: Créer une nouvelle catégorie
|
||||||
Back to the category list: Retour à la liste
|
Back to the category list: Retour à la liste
|
||||||
|
|
||||||
|
# WOPI EDIT
|
||||||
|
online_edit_document: Éditer en ligne
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<i v-if="isChangeIcon" class="fa me-2" :class="button.changeIcon"></i>
|
<i v-if="isChangeIcon" class="fa me-2" :class="button.changeIcon"></i>
|
||||||
|
|
||||||
<span v-if="!noText">
|
<span v-if="!noText">
|
||||||
{{ $t('Update_document') }}
|
{{ $t('online_edit_document') }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ export default {
|
|||||||
i18n: {
|
i18n: {
|
||||||
messages: {
|
messages: {
|
||||||
fr: {
|
fr: {
|
||||||
Update_document: "Éditer en ligne",
|
online_edit_document: "Éditer en ligne",
|
||||||
save_and_quit: "Enregistrer et quitter",
|
save_and_quit: "Enregistrer et quitter",
|
||||||
loading: "Chargement de l'éditeur en ligne",
|
loading: "Chargement de l'éditeur en ligne",
|
||||||
invalid_title: "Format incompatible",
|
invalid_title: "Format incompatible",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user