From 794c479b9ef4ff69c1ed8cb6f98c9752160dcd4b Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 2 Jul 2024 15:08:45 +0200 Subject: [PATCH] signature: layout and css bootstrap class of the vue app --- .../public/vuejs/DocumentSignature/App.vue | 59 ++++-- .../views/PersonDocument/signature.html.twig | 177 ++++++++---------- 2 files changed, 117 insertions(+), 119 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue index 9c2ad2bfb..da31c1b47 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue @@ -9,23 +9,41 @@ -
- - +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + {{ page }} / {{ pageCount }} + +
+
-
- - {{ page }} / {{ pageCount }} - +
+
-
- -
- - diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/signature.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/signature.html.twig index 9c2017184..431de25b7 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/signature.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/signature.html.twig @@ -1,107 +1,84 @@ -{% extends "@ChillPerson/Person/layout.html.twig" %} + + + + + + + + Signature -{% set activeRouteKey = '' %} + {{ encore_entry_link_tags('mod_bootstrap') }} -{% 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 %} + -{% block js %} - {{ encore_entry_script_tags('mod_document_action_buttons_group') }} - - {{ encore_entry_script_tags('vue_document_signature') }} -{% endblock %} + }; + window.signature = signature; + + {{ encore_entry_script_tags('vue_document_signature') }} + {% endblock %} -{% block css %} - {{ encore_entry_link_tags('mod_document_action_buttons_group') }} -{% endblock %} - -{% block content %} -

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

- - {{ mm.mimeIcon(document.object.type) }} - -
-
{{ 'Title'|trans }}
-
{{ document.title }}
-
- -
- -
    -
  • - - {{ 'Back to the list' | trans }} - -
  • - - {% if is_granted('CHILL_PERSON_DOCUMENT_DELETE', document) %} -
  • - -
  • - {% endif %} - -
  • - {{ document.object|chill_document_button_group(document.title, is_granted('CHILL_PERSON_DOCUMENT_UPDATE', document)) }} -
  • - - {% if is_granted('CHILL_PERSON_DOCUMENT_UPDATE', document) %} -
  • - - {{ 'Edit' | trans }} - -
  • - {% endif %} -{% endblock %} +
    +
    +
    +
    +

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

    +
    +
    +
    +
    +
    + +