- {% if chill_accompanying_periods.fields.user == 'visible' %}
- {% if accompanying_period.user %}
- {{ accompanying_period.user.username }}
+ {% if accompanying_period.closingDate == null %}
+ {{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long') } ) }}
{% else %}
-
{{ 'No accompanying user'|trans }}
+ {{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
+ '%opening_date%': accompanying_period.openingDate|format_date('long'),
+ '%closing_date%': accompanying_period.closingDate|format_date('long')}
+ ) }}
+ {% if accompanying_period.isOpen == false %}
+
+ - {{ 'Closing motive'|trans }} :
+ - {{ accompanying_period.closingMotive|chill_entity_render_box }}
+
+ {% endif %}
{% endif %}
- {% endif %}
+
+
{{ 'Participants'|trans }}
+
- {% if accompanying_period.closingDate == null %}
- {{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long') } ) }}
- {% else %}
- {{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
- '%opening_date%': accompanying_period.openingDate|format_date('long'),
- '%closing_date%': accompanying_period.closingDate|format_date('long')}
- ) }}
- {% if accompanying_period.isOpen == false %}
-
- - {{ 'Closing motive'|trans }} :
- - {{ accompanying_period.closingMotive|chill_entity_render_box }}
-
- {% endif %}
- {% 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 }}
+
+ {% endif %}
+ {% if accompanying_period.requestorThirdParty is not null %}
+
+ {{ accompanying_period.requestorThirdParty.name }}
+
+ {% endif %}
+ {% else %}
+
{{ 'No data given'|trans }}
+ {% endif %}
+
-
{{ 'Participants'|trans }}
-
+
+
+
{{ '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 %}
+
+
-
-
+
- {{ '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 %}
-
-
-
-
-
-
{{ '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 %}
-
-
-