diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig index cc83dc6ed..5dc1793de 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig @@ -78,16 +78,25 @@ {% set app = person.findParticipationForPeriod(acp) %}
- - + {% if acp.requestorPerson == person %} +
+
+

+ + {{ 'Requestor'|trans({'gender': person.gender}) }} + +

+
+
+ +
+
+ {% endif %}
@@ -97,7 +106,7 @@ {{ 'Since %date%'|trans({'%date%': app.startDate|format_date('medium') }) }}
{% endif %} - + {% set notif_counter = chill_count_notifications('Chill\\PersonBundle\\Entity\\AccompanyingPeriod', acp.id) %} {% if notif_counter.total > 0 %} {{ chill_counter_notifications('Chill\\PersonBundle\\Entity\\AccompanyingPeriod', acp.id) }} @@ -107,18 +116,22 @@ {% if acp.emergency %} {{- 'Emergency'|trans|upper -}} {% endif %} - + {% if acp.confidential %} {{- 'Confidential'|trans|upper -}} {% endif %} - + {% if acp.step == 'DRAFT' %} {{ 'course.draft'|trans }} {% endif %} + + {% if acp.step == 'CLOSED' %} + {{ 'course.closed'|trans }} + {% endif %}
- + {% if acp.user is not null %}
@@ -131,7 +144,7 @@
{% endif %} - + {% if acp.socialIssues|length > 0 %}
@@ -144,24 +157,7 @@
{% endif %} - - {# ???? - {% if acp.requestorPerson == person %} -
-
-

- -

-
-
- - {{ 'Requestor'|trans({'gender': person.gender}) }} - -
-
- {% endif %} - #} - + {% if acp.currentParticipations|length > 1 %}
@@ -190,7 +186,16 @@
{% endif %} - + + + {% if (acp.requestorPerson is not null and acp.requestorPerson.id != person.id) or acp.requestorThirdParty is not null %}