resume page: add persons and others infos

This commit is contained in:
2021-11-22 17:51:45 +01:00
parent 92753604fa
commit 4f1c373704
4 changed files with 45 additions and 5 deletions

View File

@@ -52,13 +52,43 @@
{% if accompanyingCourse.locationStatus != 'none' %}
{{ accompanyingCourse.location|chill_entity_render_box }}
{% endif %}
<!--
<div class="mt-5">
<h4>Origine de la demande</h4>
<p>bim bam boum</p>
</div>
<div class="mt-3">
<h4>Services</h4>
<ul>
<li>one</li>
<li>two</li>
</ul>
</div>
-->
</div>
{% if accompanyingCourse.resources is not empty
and (accompanyingCourse.requestorThirdParty is not null
{% if accompanyingCourse.participations is not empty
or accompanyingCourse.resources is not empty
or (accompanyingCourse.requestorThirdParty is not null
or accompanyingCourse.requestorPerson is not null)
%}
<div class="col-md-6 resources mb-5">
<div class="col-md-6 persons mb-5">
<div class="mb-3">
{% if accompanyingCourse.participations is not empty %}
<h4 class="item-key">{{ 'Persons associated'|trans }}</h4>
{% for r in accompanyingCourse.participations %}
{% if r.person is not null %}
{{ _self.insert_onthefly('person', r.person) }}
{% elseif r.thirdParty is not null %}
{{ _self.insert_onthefly('thirdparty', r.thirdParty) }}
{% endif %}
{% endfor %}
{% else %}
<span class="chill-no-data-statement visually-hidden">{{ 'No participations'|trans }}</span>
{% endif %}
</div>
<div class="mb-3">
{% if accompanyingCourse.requestorPerson is not null %}
<h4 class="item-key">{{ 'Requestor'|trans }}</h4>