diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_item.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_item.html.twig
index 579487824..8ab7a932c 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_item.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_item.html.twig
@@ -108,7 +108,7 @@
-
+
{% if displayContent is not defined or displayContent == 'short' %}
{% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with {
@@ -116,16 +116,16 @@
} %}
{% endif %}
-
+
{% if displayContent is not defined or displayContent == 'short' %}
-
+
{% import '@ChillPerson/AccompanyingCourseWork/_macros.html.twig' as macro %}
-
+
{{ macro.metadata(w) }}
-
+
{% if displayAction is defined and displayAction == true %}
- {{ macro.workflowButton(w) }}
@@ -163,10 +163,10 @@
#}
{% if displayContent is defined and displayContent == 'long' %}
-
+
{% if w.results|length > 0 or w.goals|length > 0 or w.accompanyingPeriodWorkEvaluations|length > 0 %}
{{ 'Dispositifs' }}
-
+
{# new flex-table wrapper #}
{% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with {
@@ -175,9 +175,9 @@
{% endif %}
-
+
{{ 'Comments'|trans }}
-
+
Public
@@ -189,15 +189,14 @@
{{ 'No comment associated'|trans }}
{% endif %}
- {% set userId = app.user.id %}
- {% if w.privateComment.comments|length > 0 and w.privateComment.comments[userId] %}
+ {% if w.privateComment.hasCommentForUser(app.user) %}
Privé
- {{ w.privateComment.comments[userId]|chill_markdown_to_html }}
+ {{ w.privateComment.commentForUser(app.user)|chill_markdown_to_html }}
{% endif %}
{# Here flex-table stay open ! read above #}
-
-{% endif %}
\ No newline at end of file
+
+{% endif %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_objectifs_results_evaluations.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_objectifs_results_evaluations.html.twig
index 800d39935..aa3838348 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_objectifs_results_evaluations.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_objectifs_results_evaluations.html.twig
@@ -75,7 +75,7 @@
{{ 'accompanying_course_work.start_date'|trans ~ ' : ' }}
{{ e.startDate|format_date('short') }}
-
+
{% if e.endDate %}
{{ 'accompanying_course_work.end_date'|trans ~ ' : ' }}
@@ -89,7 +89,7 @@
{% endif %}
{% endif %}
-
+
{% if e.maxDate %}
{{ 'accompanying_course_work.max_date'|trans ~ ' : ' }}
@@ -103,7 +103,7 @@
{% endif %}
{% endif %}
-
+
{% if e.warningInterval and e.warningInterval.d > 0 %}
{% set days = (e.warningInterval.d + e.warningInterval.m * 30) %}
@@ -122,15 +122,17 @@
{% if displayContent is defined and displayContent == 'long' %}
-
-
{{ e.comment|chill_entity_render_box }}
-
+
+ {% if e.comment is not empty %}
+
{{ e.comment|chill_entity_render_box }}
+ {% endif %}
+
{% import "@ChillDocStore/Macro/macro.html.twig" as m %}
{% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %}
-
+
{% if e.documents|length > 0 %}
-
+
{% for d in e.documents %}
{% endfor %}
-
+
{% else %}
{{ 'No document found'|trans }}
{% endif %}
-
+
{% endif %}