Display data for Usagers concernés & Resources

This commit is contained in:
Marc Ducobu 2021-05-24 11:39:22 +02:00
parent 016baf1ac9
commit 5af36d18eb

View File

@ -5,6 +5,7 @@
{% endblock %}
{% block content %}
<h1>{{ 'Resume Accompanying Course' | trans }}</h1>
{% if 'DRAFT' == accompanyingCourse.step %}
<div class="grid-8 centered error flash_message">
@ -17,12 +18,82 @@
</div>
{% endif %}
<h1>{{ 'Associated peoples'|trans }}</h1>
<div class="vue-component">
<h2>{{ 'Associated peoples'|trans }}</h2>
<h1>{{ 'Resources'|trans }}</h1>
{% if accompanyingCourse.participations.count > 0 %}
<table class="rounded">
<thead>
<tr>
<th class="chill-orange">{{ 'First name' | trans }}</th>
<th class="chill-orange">{{ 'Last name' | trans }}</th>
<th class="chill-orange">{{ 'Start date' | trans }}</th>
<th class="chill-orange">{{ 'End date' | trans }}</th>
</tr>
</thead>
<tbody>
{% for participation in accompanyingCourse.participations %}
<tr>
<td>{{ participation.person.firstName }}</td>
<td>{{ participation.person.lastName }}</td>
<td>{{ participation.startDate | format_date('short') }}</td>
<td>{{ participation.endDate | format_date('short') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div class="grid-8 centered error flash_message">
{{ "No Associated peoples recorded" | trans }}
</div>
{% endif %}
</div>
<h1>{{ 'Social actions'|trans }}</h1>
<div class="vue-component">
<h2>{{ 'Resources'|trans }}</h2>
<h1>{{ 'Last events on accompanying course'|trans }}</h1>
{% if accompanyingCourse.resources.count > 0 %}
<table class="rounded">
<thead>
<tr>
<th class="chill-orange">{{ 'First name' | trans }}</th>
<th class="chill-orange">{{ 'Last name' | trans }}</th>
</tr>
</thead>
<tbody>
{% for resource in accompanyingCourse.resources %}
<tr>
<td>{{ resource.person.firstName }}</td>
<td>{{ resource.person.lastName }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div class="grid-8 centered alert flash_message">
{{ "No resources recorded" | trans }}
</div>
{% endif %}
</div>
<div class="vue-component">
<h2>{{ 'Social actions'|trans }}</h2>
<div class="grid-8 centered notice flash_message">
{{ "Not implemented" | trans }}
</div>
</div>
<div class="vue-component">
<h2>{{ 'Last events on accompanying course'|trans }}</h2>
<div class="grid-8 centered notice flash_message">
{{ "Not implemented" | trans }}
</div>
</div>
{% endblock %}
{% block css %}
{{ encore_entry_link_tags('accompanying_course') }}
{% endblock %}