{% extends "@ChillPerson/layout.html.twig" %} {% set activeRouteKey = 'chill_activity_activity_list' %} {% block title 'Activity'|trans %} {% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %} {% block personcontent -%}

{{ "Activity"|trans }}

{{ 'User'|trans }}
{{ entity.user }}
{{ 'Scope'|trans }}
{{ entity.scope.name|localize_translatable_string }}

{{ 'Activity data'|trans }}

{{ 'Person'|trans }}
{{ entity.person }}
{{ 'Date'|trans }}
{{ entity.date|format_date('long') }}
{{ 'Duration Time'|trans }}
{{ entity.durationTime|date('H:i') }}
{{ 'Type'|trans }}
{{ entity.type.name | localize_translatable_string }}
{{ 'Attendee'|trans }}
{% if entity.attendee is not null %}{% if entity.attendee %}{{ 'present'|trans|capitalize }} {% else %} {{ 'not present'|trans|capitalize }}{% endif %}{% else %}{{ 'None'|trans|capitalize }}{% endif %}
{{ 'Reasons'|trans }}
{%- if entity.reasons is empty -%}
{{ 'No reason associated'|trans }}
{%- else -%}
{% for r in entity.reasons %}{{ r|chill_entity_render_box }} {% endfor %}
{%- endif -%}
{{ 'Comment'|trans }}
{%- if entity.comment is empty -%}
{{ 'No comment associated'|trans }}
{%- else -%}
{{ entity.comment|chill_entity_render_box }}
{%- endif -%}
{% endblock personcontent %}