resume: display associated persons from accourse

This commit is contained in:
Mathieu Jaumotte 2021-10-01 11:11:12 +02:00
parent ad72904aa9
commit 2a7e3c0334
2 changed files with 43 additions and 7 deletions

View File

@ -0,0 +1,13 @@
{% for p in accompanyingCourse.participations %}
<span class="badge-person">
<a href="{{ path('chill_person_view', { 'person_id': p.person.id }) }}"
title="{{ p.person.firstName ~ ' ' ~ p.person.lastName }}">
{{ p.person|chill_entity_render_box }}
</a>
</span>
{% endfor %}
{{ dump() }}

View File

@ -21,21 +21,44 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="accompanyingcourse-resume"> <div class="accompanyingcourse-resume row">
<pre>WIP .. AccompanyingCourse Resume dashboard</pre> <div class="concerned mb-5">
{% include '@ChillPerson/AccompanyingCourse/_concerned.html.twig' with {} %}
</div>
<div class="col-md-6 location mb-5">
{% if accompanyingCourse.locationStatus == 'person' %}
<h5>{{ 'This course is located by'|trans }}</h5>
<h4>{{ accompanyingCourse.personLocation|chill_entity_render_string }}</h4>
{% elseif accompanyingCourse.locationStatus == 'address' %}
<h4>{{ 'This course has a temporarily location'|trans }}</h4>
{% endif %}
{% if accompanyingCourse.locationStatus != 'none' %}
{{ accompanyingCourse.location|chill_entity_render_box }}
{% endif %}
</div>
{% if 'DRAFT' == accompanyingCourse.step %} {% if 'DRAFT' == accompanyingCourse.step %}
<div class="col-md-6 warnings mb-5">
{% include '@ChillPerson/AccompanyingCourse/_still_draft.html.twig' %} {% include '@ChillPerson/AccompanyingCourse/_still_draft.html.twig' %}
</div>
{% endif %} {% endif %}
{% if accompanyingCourse.locationStatus == 'address' or accompanyingCourse.locationStatus == 'none' %}
<div class="col-md-6 warnings mb-5">
{% include '@ChillPerson/AccompanyingCourse/_warning_address.html.twig' %}
</div>
{% endif %}
{% if 'DRAFT' != accompanyingCourse.step %} {% if 'DRAFT' != accompanyingCourse.step %}
{% if withoutHousehold|length > 0 %} {% if withoutHousehold|length > 0 %}
<div class="col-md-6 warnings mb-5">
{% include '@ChillPerson/AccompanyingCourse/_join_household.html.twig' %} {% include '@ChillPerson/AccompanyingCourse/_join_household.html.twig' %}
</div>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if accompanyingCourse.locationStatus == 'address' or accompanyingCourse.locationStatus == 'none' %}
{% include '@ChillPerson/AccompanyingCourse/_warning_address.html.twig' %}
{% endif %}
{# DISABLED {# DISABLED