only show current participations in parcours resumé

This commit is contained in:
Julie Lenaerts 2022-01-12 13:39:53 +01:00
parent b679d833da
commit 15342f85d3

View File

@ -92,11 +92,11 @@
</div> </div>
{% endif %} {% endif %}
{% if accompanyingCourse.participations is not empty %} {% if accompanyingCourse.getCurrentParticipations is not empty %}
<div class="mbloc col col-sm-6 col-lg-4"> <div class="mbloc col col-sm-6 col-lg-4">
<div class="persons"> <div class="persons">
<h4 class="item-key">{{ 'Persons associated'|trans }}</h4> <h4 class="item-key">{{ 'Persons associated'|trans }}</h4>
{% for r in accompanyingCourse.participations %} {% for r in accompanyingCourse.getCurrentParticipations %}
{{ _self.insert_onthefly('person', r.person) }} {{ _self.insert_onthefly('person', r.person) }}
{% endfor %} {% endfor %}
</div> </div>