diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig
index 6c7b30a3a..a36b50afe 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig
@@ -34,7 +34,8 @@
{% endif %}
{% endif %}
- {% if accompanyingCourse.locationStatus == 'address' or accompanyingCourse.locationStatus == 'none' %}
+ {% if accompanyingCourse.locationStatus == 'address'
+ or accompanyingCourse.locationStatus == 'none' %}
{% include '@ChillPerson/AccompanyingCourse/_warning_address.html.twig' %}
@@ -53,31 +54,38 @@
{% endif %}
+ {% if accompanyingCourse.resources is not empty
+ and (accompanyingCourse.requestorThirdParty is not null
+ or accompanyingCourse.requestorPerson is not null)
+ %}
-
{{ 'Requestor'|trans }}
{% if accompanyingCourse.requestorPerson is not null %}
+ {{ 'Requestor'|trans }}
{{ _self.insert_onthefly('person', accompanyingCourse.requestorPerson) }}
{% elseif accompanyingCourse.requestorThirdParty is not null %}
+ {{ 'Requestor'|trans }}
{{ _self.insert_onthefly('thirdparty', accompanyingCourse.requestorThirdParty) }}
{% else %}
- {{ 'No requestor'|trans }}
+ {{ 'No requestor'|trans }}
{% endif %}
-
{{ 'Resources'|trans }}
- {% for r in accompanyingCourse.resources %}
- {% if r.person is not null %}
- {{ _self.insert_onthefly('person', r.person) }}
- {% elseif r.thirdParty is not null %}
- {{ _self.insert_onthefly('thirdparty', r.thirdParty) }}
- {% endif %}
- {% endfor %}
- {% if accompanyingCourse.resources is empty %}
- {{ 'No resources'|trans }}
+ {% if accompanyingCourse.resources is not empty %}
+ {{ 'Resources'|trans }}
+ {% for r in accompanyingCourse.resources %}
+ {% if r.person is not null %}
+ {{ _self.insert_onthefly('person', r.person) }}
+ {% elseif r.thirdParty is not null %}
+ {{ _self.insert_onthefly('thirdparty', r.thirdParty) }}
+ {% endif %}
+ {% endfor %}
+ {% else %}
+ {{ 'No resources'|trans }}
{% endif %}
+ {% endif %}
{{ 'Last social actions'|trans }}