data-doc-title is a not required props

This commit is contained in:
2022-02-02 15:13:48 +01:00
parent 2af3de4f61
commit ef42227e6c
4 changed files with 10 additions and 16 deletions

View File

@@ -50,16 +50,15 @@
<li>
{{ m.download_button(document.object, document.title) }}
</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) %}
<li>
<a href="{{ path('accompanying_course_document_edit', {'id': document.id, 'course': accompanyingCourse.id}) }}" class="btn btn-edit">
{{ 'Edit' | trans }}
</a>
<a href="{{ path('accompanying_course_document_edit', {'id': document.id, 'course': accompanyingCourse.id}) }}"
class="btn btn-edit" title="{{ 'Edit' | trans }}"></a>
</li>
{% 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) %}
{% if workflows_frame is not empty %}
<li>

View File

@@ -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() }}
#}
<span data-module="wopi-link"
data-wopi-url="{{ path('chill_wopi_file_edit', {'fileId': document.uuid}) }}"
data-doc-title="coucou"
data-doc-type="{{ document.type|e('html_attr') }}"
data-button="{{ button|json_encode }}"
></span>