{% extends "@ChillPerson/layout.html.twig" %} {% set activeRouteKey = null %} {# define the title of the page #} {% if form.vars.action == 'update' %} {% set page_title = 'Update accompanying period'|trans %} {% elseif form.vars.action == 'open' %} {% set page_title = 'Update accompanying period'|trans %} {% elseif form.vars.action == 'close' %} {% set page_title = 'Update accompanying period'|trans %} {% elseif form.vars.action == 'create' %} {% set page_title = 'Create an accompanying period'|trans %} {% else %} {% set page_title = '' %} {% endif %} {% block title page_title %} {% block personcontent %}
{{ 'Last opening since %last_opening%'|trans( { '%last_opening%' : accompanying_period.openingDate|format_date('long') }) }}
{% if form.openingDate is defined %} {{ form_row(form.openingDate, { 'label': 'Opening date'} ) }} {% endif %} {% if form.closingDate is defined %} {{ form_row(form.closingDate, {'label' : 'Closing date'} ) }} {% endif %} {% if form.closingMotive is defined %} {{ form_row(form.closingMotive, {'label' : 'Closing motive'} ) }} {% endif %} {% if form.user is defined %} {{ form_row(form.user, {'label': 'Accompanying user'}) }} {% endif %} {{ form_row(form.remark, {'label' : 'Remark' } ) }} {{ form_rest(form) }} {{ form_end(form) }} {% endblock personcontent %}