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 content %} + {{ include('@ChillMain/Util/confirmation_template.html.twig', + { + '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 new file mode 100644 index 000000000..35d3eb632 --- /dev/null +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/index.html.twig @@ -0,0 +1,91 @@ +{% extends '@ChillPerson/AccompanyingCourse/layout.html.twig' %} + +{% block title %} + {{ 'Accompanying Course Comment list'|trans }} +{% endblock %} + +{% import '@ChillPerson/AccompanyingCourse/Comment/macro_showItem.html.twig' as m %} + +{% macro recordAction(comment, isPinned) %} + {% if isPinned is defined and isPinned == 'true' %} + {% else %} +
{{ comment.content|chill_markdown_to_html }}+
{{ comment.content|chill_markdown_to_html }}-
{{ block('title') }}
+{{ 'Write a new comment'|trans }}
+ {{ _self.form_comment('new', form) }} +