diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig index 0a237c2c9..4c9c89cce 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig @@ -8,7 +8,6 @@

{{ 'Accompanying period list'|trans }}

- {% for accompanying_period in accompanying_periods %}
@@ -16,8 +15,25 @@
{{'period'|trans}} #{{ accompanying_period.id }} {% if accompanying_period.emergency %} - - {{- 'Emergency'|trans -}} +   + + {{- 'Emergency'|trans|upper -}} + + {% endif %} + {% if accompanying_period.confidential %} +   + + {{- 'Confidential'|trans|upper -}} + + {% endif %} + {% if accompanying_period.step == 'DRAFT' %} +   + + {{- 'Draft'|trans|upper -}} + + {% else %} + + {{- 'Confirmed'|trans|upper -}} {% endif %}
@@ -51,8 +67,8 @@ {% endif %}
-
+

{{ 'Participants'|trans }}

{% if accompanying_period.participations.count > 0 %} {% for p in accompanying_period.participations %} @@ -65,20 +81,31 @@ {% else %} {{ 'No data given'|trans }} {% endif %} -
-
-

{{ '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 }}

+
+
+

{{ '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 }} {% endif %} - {% if accompanying_period.requestorThirdParty is not null %} -

{{ accompanying_period.requestorThirdParty.name }}

+
+ +
+

{{ 'Social issues'|trans }}

+ {% if accompanying_period.socialIssues.count > 0 %} + {% for si in accompanying_period.socialIssues %} +

{{ si.title|localize_translatable_string }}

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