mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
accourse resume page: add all informations needed for activities
This commit is contained in:
@@ -41,41 +41,52 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="col-md-5 location mb-5">
|
||||
{% if accompanyingCourse.locationStatus == 'person' %}
|
||||
<h2>{{ 'This course is located by'|trans }}</h2>
|
||||
<h4>{{ accompanyingCourse.personLocation|chill_entity_render_string }}</h4>
|
||||
{% elseif accompanyingCourse.locationStatus == 'address' %}
|
||||
<h4>{{ 'This course has a temporarily location'|trans }}</h4>
|
||||
{% endif %}
|
||||
<div class="col-md-5 mb-5">
|
||||
<div class="location mb-3">
|
||||
{% if accompanyingCourse.locationStatus == 'person' %}
|
||||
<h2>{{ 'This course is located by'|trans }}</h2>
|
||||
<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 class="mt-5">
|
||||
<h4>Origine de la demande</h4>
|
||||
<p>bim bam boum</p>
|
||||
{% if accompanyingCourse.locationStatus != 'none' %}
|
||||
{{ accompanyingCourse.location|chill_entity_render_box }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
<h4>Services</h4>
|
||||
<ul>
|
||||
<li>one</li>
|
||||
<li>two</li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
|
||||
</div>
|
||||
|
||||
{% if accompanyingCourse.participations is not empty
|
||||
or accompanyingCourse.resources is not empty
|
||||
{% if accompanyingCourse.scopes is not empty
|
||||
or (accompanyingCourse.requestorThirdParty is not null
|
||||
or accompanyingCourse.requestorPerson is not null)
|
||||
or accompanyingCourse.participations is not empty
|
||||
or accompanyingCourse.resources is not empty
|
||||
%}
|
||||
<div class="col-md-7 persons mb-5">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-7 mb-5">
|
||||
<div class="scopes mb-3">
|
||||
{% if accompanyingCourse.scopes is not empty %}
|
||||
<h4 class="item-key">{{ 'Scopes'|trans }}</h4>
|
||||
<p>
|
||||
{% for s in accompanyingCourse.scopes %}
|
||||
<span>{{ s.name|localize_translatable_string|capitalize }}</span>{% if not loop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% else %}
|
||||
<span class="chill-no-data-statement visually-hidden">{{ 'No scopes'|trans }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="requestor mb-3">
|
||||
{% if accompanyingCourse.requestorPerson is not null %}
|
||||
<h4 class="item-key">{{ 'Requestor'|trans }}</h4>
|
||||
{{ _self.insert_onthefly('person', accompanyingCourse.requestorPerson) }}
|
||||
{% elseif accompanyingCourse.requestorThirdParty is not null %}
|
||||
<h4 class="item-key">{{ 'Requestor'|trans }}</h4>
|
||||
{{ _self.insert_onthefly('thirdparty', accompanyingCourse.requestorThirdParty) }}
|
||||
{% else %}
|
||||
<span class="chill-no-data-statement visually-hidden">{{ 'No requestor'|trans }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="persons mb-3">
|
||||
{% if accompanyingCourse.participations is not empty %}
|
||||
<h4 class="item-key">{{ 'Persons associated'|trans }}</h4>
|
||||
{% for r in accompanyingCourse.participations %}
|
||||
@@ -89,18 +100,7 @@
|
||||
<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>
|
||||
{{ _self.insert_onthefly('person', accompanyingCourse.requestorPerson) }}
|
||||
{% elseif accompanyingCourse.requestorThirdParty is not null %}
|
||||
<h4 class="item-key">{{ 'Requestor'|trans }}</h4>
|
||||
{{ _self.insert_onthefly('thirdparty', accompanyingCourse.requestorThirdParty) }}
|
||||
{% else %}
|
||||
<span class="chill-no-data-statement visually-hidden">{{ 'No requestor'|trans }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div>
|
||||
<div class="resources mb-3">
|
||||
{% if accompanyingCourse.resources is not empty %}
|
||||
<h4 class="item-key">{{ 'Resources'|trans }}</h4>
|
||||
{% for r in accompanyingCourse.resources %}
|
||||
|
Reference in New Issue
Block a user