mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-29 13:36:13 +00:00
resume: display associated persons from accourse
This commit is contained in:
parent
ad72904aa9
commit
2a7e3c0334
@ -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() }}
|
||||||
|
|
@ -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 %}
|
||||||
{% include '@ChillPerson/AccompanyingCourse/_still_draft.html.twig' %}
|
<div class="col-md-6 warnings mb-5">
|
||||||
|
{% 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 %}
|
||||||
{% include '@ChillPerson/AccompanyingCourse/_join_household.html.twig' %}
|
<div class="col-md-6 warnings mb-5">
|
||||||
|
{% 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user