diff --git a/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig index b4c2b0196..7d7af99fb 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig @@ -12,10 +12,25 @@ {{ encore_entry_link_tags('mod_notification_toggle_read_status') }} {% endblock %} +{% import '@ChillPerson/AccompanyingCourse/Comment/macro_showItem.html.twig' as m %} + +{% macro recordAction(comment) %} + {% if is_granted('CHILL_MAIN_NOTIFICATION_COMMENT_EDIT', comment) %} +
{{ 'notification.comments_list'|trans }}
---
-
-
-
- {% endif %} -+-
+
+ {{ 'cancel'|trans }}
+
+
+ -
+
+
+
+ {{ form_end(editedCommentForm) }} ---
-
-
- -
-
-
-
- {{ form_end(editedCommentForm) }} ---
-
-
-
- {{ form_end(appendCommentForm) }} + {% endfor %}{{ 'Write a new comment'|trans }}
+ + {{ form_start(appendCommentForm) }} + {{ form_errors(appendCommentForm) }} + {{ form_widget(appendCommentForm.content) }} + ++-
+
+
+
+ {{ form_end(appendCommentForm) }} + +diff --git a/src/Bundle/ChillMainBundle/translations/messages.fr.yml b/src/Bundle/ChillMainBundle/translations/messages.fr.yml index 622042e20..73bbb5014 100644 --- a/src/Bundle/ChillMainBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillMainBundle/translations/messages.fr.yml @@ -353,6 +353,7 @@ Created for: Créé pour Created by: Créé par notification: + Notification: Notification My own notifications: Mes notifications Notify: Envoyer une notification Notification created: Notification envoyée @@ -363,6 +364,7 @@ notification: comment_appended: Commentaire ajouté append_comment: Ajouter un commentaire comment_updated: Commentaire mis à jour + comments_list: Fil de commentaires is_unread: Non-lue is_system: notification automatique list: Notifications diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/macro_showItem.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/macro_showItem.html.twig index 8812dcdae..3bf4b98ff 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/macro_showItem.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/Comment/macro_showItem.html.twig @@ -22,3 +22,6 @@