{# * Copyright (C) 2014, Champs Libres Cooperative SCRLFS, * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} {% extends "ChillPersonBundle::layout.html.twig" %} {% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %} {% set activeRouteKey = 'chill_activity_activity_list' %} {% block title %}{{ 'Activity list' |trans }}{% endblock title %} {% block personcontent %}

{{ 'Activity list' |trans }}

{% if activities|length == 0 %}

{{ "There isn't any activities."|trans }}

{% else %} {% for activity in activities %} {% endfor %}
{{'Date' | trans }} {{'Duration Time' | trans }} {{'Reasons' | trans}} {{'Type' | trans}}  
{% if activity.date %}{{ activity.date|localizeddate('long', 'none') }}{% endif %} {{ activity.durationTime|date('H:i') }} {%- if activity.reasons is empty -%} {{ 'No reason associated'|trans }} {%- else -%} {% for r in activity.reasons %}{{ m.reason(r) }} {% endfor %} {%- endif -%} {{ activity.type.name | localize_translatable_string }}
{% endif %}

{{ 'Add a new activity' | trans }}

{% endblock %}