{% macro insert_onthefly(type, entity) %} {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { action: 'show', displayBadge: true, targetEntity: { name: type, id: entity.id }, buttonText: entity|chill_entity_render_string, isDead: entity.deathdate is not null } %} {% endmacro %}
{% if accompanyingCourse.participations is not empty %}

{{ 'Persons associated'|trans }}

{% for r in accompanyingCourse.participations %} {{ _self.insert_onthefly('person', r.person) }} {% endfor %}
{% endif %} {% if accompanyingCourse.socialIssues is not empty %}

{{ 'Social issues'|trans }}

{% for s in accompanyingCourse.socialIssues %} {{ s|chill_entity_render_box }} {% endfor %}
{% endif %}