From b153fc19f6ccbcc68791d481d5404df13420204c Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Mon, 10 Jan 2022 20:55:37 +0000 Subject: [PATCH] 327 pinned comment --- .../Util/confirmation_template.html.twig | 16 +- .../AccompanyingCourseCommentController.php | 166 ++++++++++++++---- .../Form/AccompanyingCourseCommentType.php | 4 +- .../Comment/confirm_delete.html.twig | 19 ++ .../Comment/index.html.twig | 91 ++++++++++ .../Comment/macro_showItem.html.twig | 24 +++ .../AccompanyingCourse/comment_list.html.twig | 92 ---------- .../AccompanyingPeriodCommentVoter.php | 42 +++++ .../config/services/security.yaml | 4 + .../translations/messages.fr.yml | 6 + 10 files changed, 328 insertions(+), 136 deletions(-) create mode 100644 src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/confirm_delete.html.twig create mode 100644 src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/index.html.twig create mode 100644 src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/macro_showItem.html.twig delete mode 100644 src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/comment_list.html.twig create mode 100644 src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodCommentVoter.php diff --git a/src/Bundle/ChillMainBundle/Resources/views/Util/confirmation_template.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Util/confirmation_template.html.twig index 6bec0975a..1da31cfc7 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Util/confirmation_template.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Util/confirmation_template.html.twig @@ -6,14 +6,20 @@

{{ confirm_question }}

{% endif %} +{% if display_content is not empty %} + {{ display_content|raw }} +{% endif %} + {{ form_start(form) }}