notification: handle activities

This commit is contained in:
2022-01-04 17:40:47 +01:00
parent 160d382e07
commit f76f7a1641
7 changed files with 65 additions and 10 deletions

View File

@@ -141,7 +141,7 @@
</div>
</div>
{% endif %}
{# Only if ACL SEE_DETAILS AND/OR only on template SHOW ??
durationTime
travelTime
@@ -152,8 +152,20 @@
</div>
</div>
{% set notifications = chill_list_notifications('Chill\\ActivityBundle\\Entity\\Activity', activity.id) %}
{% if notifications is not empty %}
<div class="item-row separator">
{{ notifications|raw }}
</div>
{% endif %}
<div class="item-row separator">
<ul class="record_actions">
{% if no_action is not defined or no_action == false %}
<li>
<a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': activity.id}) }}">{{ 'notification.Notify'|trans }}</a>
</li>
{% endif %}
{% if context == 'person' and activity.accompanyingPeriod is not empty %}
{#
Disable person_id in following links, for redirect to accompanyingCourse context