- {% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_SEE', document) %}
+ {% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_EVALUATION_DOCUMENT_SHOW', document) %}
+ {% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with {
+ 'w': document.accompanyingPeriodWorkEvaluation.accompanyingPeriodWork,
+ 'd': document.storedObject,
+ 'displayContent': 'long',
+ } %}
{% else %}
+
+ {{ 'This is the minimal period details'|trans ~ ': ' ~ document.id }}
+ {{ 'You are getting a notification for a period you are not allowed to see'|trans }}
+
{% endif %}
- {{ dump(document) }}
- {% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with {
-
- 'w': document.accompanyingPeriodWorkEvaluation.accompanyingPeriodWork
- } %}
-
- {{ 'This is the minimal period details'|trans ~ ': ' ~ document.id }}
- {{ 'You are getting a notification for a period you are not allowed to see'|trans }}
-
{% else %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/showInNotification.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/showInNotification.html.twig
index 70a1a0980..311692030 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/showInNotification.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/showInNotification.html.twig
@@ -6,9 +6,7 @@
{% endmacro %}
{% if work is not null %}
- {% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_SEE', work) %}
- {% else %}
- {% endif %}
+ {% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_SEE', work) %}
{% include 'ChillPersonBundle:AccompanyingCourseWork:_item.html.twig' with {
'itemBlocClass': 'bg-chill-llight-gray',
'displayAction': true,
@@ -16,10 +14,12 @@
'displayFontSmall': true,
'w': work
} %}
+ {% else %}
{{ 'This is the minimal period details'|trans ~ ': ' ~ work.id }}
{{ 'You are getting a notification for a period you are not allowed to see'|trans }}
+ {% endif %}
{% else %}