{% extends "ChillPersonBundle::layout.html.twig" %} {% set activeRouteKey = 'chill_person_history_list' %} {% block title %}{{ 'Person history - %name%'|trans({ '%name%' : person.__toString}) }}{% endblock title %} {% block personcontent %} {% set i = 0 %} {% for history in histories %} {% if history.memo is not empty %} {% endif %} {% set i = i+1 %} {% endfor %}
{{ 'Opening date'|trans }} {{ 'Closing date'|trans }}  
{{ history.dateOpening|localizeddate('long', 'none', app.request.locale) }} {% spaceless %} {% if history.isOpen %} {{ 'Still open'|trans }} {% else %} {{ history.dateClosing|localizeddate('long', 'none', app.request.locale) }} {% endif %} {% endspaceless %}
{{ history.memo }}
{{ 'Create history'|trans }}
{% spaceless %} {% if person.isOpen == true %} {{'Close history'|trans }} {% else %} {{'Open history'|trans }} {% endif %} {% endspaceless %}
{% endblock personcontent %}