diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index 697a3e2b2..96e2cb534 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -56,48 +56,17 @@ {% endif %} -
- {% if accompanyingCourse.scopes is not empty %} -

{{ 'Scopes'|trans }}

-
- {% for s in accompanyingCourse.scopes %} - {{ s.name|localize_translatable_string|capitalize }}{% if not loop.last %}, {% endif %} - {% endfor %} -
- {% else %} - {{ 'No scopes'|trans }} - {% endif %} -
- -
- {% 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 }} - {% endif %} -
- -
- {% if accompanyingCourse.participations is not empty %} + {% if accompanyingCourse.participations is not empty %} +

{{ 'Persons associated'|trans }}

{% for r in accompanyingCourse.participations %} - {% 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 %} + {{ _self.insert_onthefly('person', r.person) }} {% endfor %} - {% else %} - {{ 'No participations'|trans }} - {% endif %} -
+
+ {% endif %} -
- {% if accompanyingCourse.resources is not empty %} + {% if accompanyingCourse.resources is not empty %} +

{{ 'Resources'|trans }}

{% for r in accompanyingCourse.resources %} {% if r.person is not null %} @@ -106,10 +75,31 @@ {{ _self.insert_onthefly('thirdparty', r.thirdParty) }} {% endif %} {% endfor %} - {% else %} - {{ 'No resources'|trans }} - {% endif %} -
+
+ {% endif %} + + {% if accompanyingCourse.scopes is not empty %} +
+

{{ 'Scopes'|trans }}

+
+ {% for s in accompanyingCourse.scopes %} + {{ s.name|localize_translatable_string|capitalize }}{% if not loop.last %}, {% endif %} + {% endfor %} +
+
+ {% endif %} + + {% if accompanyingCourse.requestorPerson is not null or accompanyingCourse.requestorThirdParty is not null %} +
+ {% 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) }} + {% endif %} +
+ {% endif %}