From e595500cb84be7e84e7d28c8fd0272fc1ec2ad46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 11 Feb 2022 17:01:36 +0100 Subject: [PATCH] apply changes on person document --- .../AccompanyingCourseDocument/show.html.twig | 20 +++++++------------ .../views/Button/wopi_edit_document.html.twig | 7 ------- .../Resources/views/List/list_item.html.twig | 5 ++++- .../views/PersonDocument/show.html.twig | 11 +++++++++- .../public/module/wopi-link/index.js | 17 +++++++++++++++- 5 files changed, 37 insertions(+), 23 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/show.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/show.html.twig index a43bc2cd2..1e4fdb8e6 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/show.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/AccompanyingCourseDocument/show.html.twig @@ -14,26 +14,23 @@ {{ parent() }} {{ encore_entry_link_tags('mod_async_upload') }} {{ encore_entry_link_tags('mod_entity_workflow_pick') }} - {# - {{ encore_entry_link_tags('mod_wopi_link') }} - #} {% endblock %} {% block content %}

{{ block('title') }}

- + {{ mm.mimeIcon(document.object.type) }} - +
{{ 'Title'|trans }}
{{ document.title }}
- + {% if document.category is not null %}
{{ 'Category'|trans }}
{{ document.category.name|localize_translatable_string }}
{% endif %} - +
{{ 'Description' | trans }}
{% if document.description is empty %} @@ -45,7 +42,7 @@ {% endif %}
- +
{% endblock %} - + {% block block_post_menu %}
{% endblock %} @@ -84,7 +81,4 @@ {{ parent() }} {{ encore_entry_script_tags('mod_async_upload') }} {{ encore_entry_script_tags('mod_entity_workflow_pick') }} - {# - {{ encore_entry_script_tags('mod_wopi_link') }} - #} -{% endblock %} \ No newline at end of file +{% endblock %} 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 5e55650c7..f25c06030 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,10 +1,3 @@ -{# DISABLED vue component - -#} {# Twig way TODO: une route, un template avec un header CHILL et un iframe diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/List/list_item.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/List/list_item.html.twig index 45ebf2799..358127bfb 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/List/list_item.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/List/list_item.html.twig @@ -1,11 +1,14 @@ {% import "@ChillDocStore/Macro/macro.html.twig" as m %} - +{% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %}
{{ document.title }}
+
+ {{ mm.mimeIcon(document.object.type) }} +

{{ document.category.name|localize_translatable_string }}

diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/show.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/show.html.twig index 27b53b638..723757425 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/show.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/show.html.twig @@ -19,6 +19,7 @@ {% set activeRouteKey = '' %} {% import "@ChillDocStore/Macro/macro.html.twig" as m %} +{% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %} {% block title %}{{ 'Detail of document of %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %} @@ -29,6 +30,8 @@ {% block personcontent %}

{{ 'Document %title%' | trans({ '%title%': document.title }) }}

+ {{ mm.mimeIcon(document.object.type) }} +
{{ 'Title'|trans }}
{{ document.title }}
@@ -54,7 +57,7 @@
-