{% extends "ChillPersonBundle::layout.html.twig" %} {% set activeRouteKey = 'chill_person_accompanying_period_list' %} {% block title %}{{ 'Person accompanying period - %name%'|trans({ '%name%' : person.__toString}) }}{% endblock title %} {% block personcontent %}
{{ 'accompanying_period.dates'|trans }} | {% if chill_accompanying_periods.fields.user == 'visible' %}{{ 'Accompanying user'|trans }} | {% endif %}{{ 'Remark'|trans }} | |
---|---|---|---|
{% if accompanying_period.isOpen == false %} {{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|localizeddate('long', 'none') } ) }} {% else %} {{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({ '%opening_date%': accompanying_period.openingDate|localizeddate('long', 'none'), '%closing_date%': accompanying_period.closingDate|localizeddate('long', 'none')} ) }} {% endif %} | {% if chill_accompanying_periods.fields.user == 'visible' %}{% if accompanying_period.user %} {{ accompanying_period.user.username }} {% else %} {{ 'No accompanying user'|trans }} {% endif %} | {% endif %}
{% if accompanying_period.isOpen == false %}
{{ accompanying_period.closingMotive|chill_entity_render_box }}
{% endif %} {{ accompanying_period.remark|chill_print_or_message('No remark', 'blockquote') }} |
|