{% if activity.date %}{{ activity.date|localizeddate('long', 'none') }}{% endif %} |
{{ activity.durationTime|date('H:i') }} |
- {{ activity.reason.name | localize_translatable_string }} |
+
+ {%- 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 }} |
- {{ 'Show' | trans }}
- |
-
- {{ 'Edit' | trans }}
+ |
{% endfor %}
diff --git a/Resources/views/Activity/new.html.twig b/Resources/views/Activity/new.html.twig
index dbea1350c..d380b61d5 100644
--- a/Resources/views/Activity/new.html.twig
+++ b/Resources/views/Activity/new.html.twig
@@ -18,14 +18,25 @@
{% set activeRouteKey = 'chill_activity_activity_new' %}
-{% block title %}{{ 'Activity create' |trans }}{% endblock title %}
+{% block title 'Activity creation' |trans %}
{% block personcontent %}