diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig index 90a1462bf..21713e37d 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig @@ -72,47 +72,45 @@ + + {% if accompanying_period.requestorPerson is not null or accompanying_period.requestorThirdParty is not null %}

{{ 'Requestor'|trans }}

- {% if accompanying_period.requestorPerson is not null or accompanying_period.requestorThirdParty is not null %} - {% if accompanying_period.requestorPerson is not null %} -

- {{ accompanying_period.requestorPerson.firstname ~ ' ' ~ accompanying_period.requestorPerson.lastname }} -

- {% endif %} - {% if accompanying_period.requestorThirdParty is not null %} -

- {{ accompanying_period.requestorThirdParty.name }} -

- {% endif %} - {% else %} - {{ 'No data given'|trans }} + {% if accompanying_period.requestorPerson is not null %} +

+ {{ accompanying_period.requestorPerson.firstname ~ ' ' ~ accompanying_period.requestorPerson.lastname }} +

+ {% endif %} + {% if accompanying_period.requestorThirdParty is not null %} +

+ {{ accompanying_period.requestorThirdParty.name }} +

{% endif %}
-
-
-
-

{{ 'Social issues'|trans }}

-
- {% if accompanying_period.socialIssues.count > 0 %} + {% endif %} + + {% if accompanying_period.socialIssues.count > 0 %} +
+
+
+

{{ 'Social issues'|trans }}

+
{% for si in accompanying_period.socialIssues %}

{{ si.title|localize_translatable_string }}

{% endfor %} - {% else %} - {{ 'No data given'|trans }} - {% endif %} +
-
+ {% endif %}