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) }}{{ comment.content|chill_markdown_to_html }}+{% endblock %} -{% block title 'Remove comment'|trans %} - -{% block personcontent %} +{% block content %} {{ include('@ChillMain/Util/confirmation_template.html.twig', { - 'title' : 'Remove comment'|trans, - 'confirm_question' : 'Are you sure you want to remove comment ?'|trans, - 'cancel_route' : 'chill_activity_activity_list', - 'cancel_parameters' : { 'person_id' : activity.person.id, 'id' : activity.id }, + 'title' : 'accompanying_course_comment.Remove comment'|trans, + 'confirm_question' : 'accompanying_course_comment.Are you sure you want to remove comment ?'|trans, + 'cancel_route' : 'chill_person_accompanying_period_comment_list', + 'cancel_parameters' : { 'accompanying_period_id': comment.accompanyingPeriod.id }, + 'display_content' : block('display_content'), 'form' : delete_form } ) }} {% endblock %} - -#} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/index.html.twig index 5af407d2b..cbebe5364 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/index.html.twig @@ -10,21 +10,27 @@ {% if isPinned is defined and isPinned == 'true' %} {% else %}
{{ 'Write a new comment'|trans }}
- {{ _self.form_comment('new', form) }} -