mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
data-doc-title is a not required props
This commit is contained in:
parent
2af3de4f61
commit
ef42227e6c
@ -50,16 +50,15 @@
|
|||||||
<li>
|
<li>
|
||||||
{{ m.download_button(document.object, document.title) }}
|
{{ m.download_button(document.object, document.title) }}
|
||||||
</li>
|
</li>
|
||||||
{% if chill_document_is_editable(document.object) %}
|
|
||||||
<li>{{ document.object|chill_document_edit_button }}</li>
|
|
||||||
{% endif %}
|
|
||||||
{% if is_granted('CHILL_ACCOMPANYING_COURSE_DOCUMENT_UPDATE', document) %}
|
{% if is_granted('CHILL_ACCOMPANYING_COURSE_DOCUMENT_UPDATE', document) %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('accompanying_course_document_edit', {'id': document.id, 'course': accompanyingCourse.id}) }}" class="btn btn-edit">
|
<a href="{{ path('accompanying_course_document_edit', {'id': document.id, 'course': accompanyingCourse.id}) }}"
|
||||||
{{ 'Edit' | trans }}
|
class="btn btn-edit" title="{{ 'Edit' | trans }}"></a>
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if chill_document_is_editable(document.object) %}
|
||||||
|
<li>{{ document.object|chill_document_edit_button }}</li>
|
||||||
|
{% endif %}
|
||||||
{% set workflows_frame = chill_entity_workflow_list('Chill\\DocStoreBundle\\Entity\\AccompanyingCourseDocument', document.id) %}
|
{% set workflows_frame = chill_entity_workflow_list('Chill\\DocStoreBundle\\Entity\\AccompanyingCourseDocument', document.id) %}
|
||||||
{% if workflows_frame is not empty %}
|
{% if workflows_frame is not empty %}
|
||||||
<li>
|
<li>
|
||||||
|
@ -1,15 +1,11 @@
|
|||||||
{% set button = {
|
{% set button = {
|
||||||
'changeIcon': 'fa-unlock',
|
'changeIcon': 'fa-magic',
|
||||||
|
'changeClass': 'btn-primary'
|
||||||
} %}{#
|
} %}{#
|
||||||
'changeClass': 'btn-update'
|
|
||||||
'noText': false
|
'noText': false
|
||||||
data-doc-title="{{ document.title|e('html_attr') }}"
|
|
||||||
{{ dump() }}
|
|
||||||
|
|
||||||
#}
|
#}
|
||||||
<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-title="coucou"
|
|
||||||
data-doc-type="{{ document.type|e('html_attr') }}"
|
data-doc-type="{{ document.type|e('html_attr') }}"
|
||||||
data-button="{{ button|json_encode }}"
|
data-button="{{ button|json_encode }}"
|
||||||
></span>
|
></span>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<img class="logo" :src="logo" height="45"/>
|
<img class="logo" :src="logo" height="45"/>
|
||||||
<span class="ms-auto me-3">
|
<span class="ms-auto me-3">
|
||||||
{{ this.title }}
|
<span v-if="title">{{ title }}</span>
|
||||||
</span>
|
</span>
|
||||||
<a class="btn btn-outline-light">
|
<a class="btn btn-outline-light">
|
||||||
<i class="fa fa-save fa-fw"></i>
|
<i class="fa fa-save fa-fw"></i>
|
||||||
@ -73,7 +73,7 @@ export default {
|
|||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: false
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
@ -205,7 +205,7 @@ export default {
|
|||||||
i18n: {
|
i18n: {
|
||||||
messages: {
|
messages: {
|
||||||
fr: {
|
fr: {
|
||||||
Update_document: "Modifier le document",
|
Update_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",
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
{{ parent() }}
|
{{ parent() }}
|
||||||
|
|
||||||
{{ encore_entry_script_tags('mod_async_upload') }}
|
{{ encore_entry_script_tags('mod_async_upload') }}
|
||||||
{{ encore_entry_script_tags('mod_pickentity_type') }}
|
{{ encore_entry_script_tags('mod_pickentity_type') }}
|
||||||
{{ encore_entry_script_tags('mod_entity_workflow_subscribe') }}
|
{{ encore_entry_script_tags('mod_entity_workflow_subscribe') }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user