74 lines
3.2 KiB
HTML
74 lines
3.2 KiB
HTML
{% extends 'airtable_base.html' %}
|
|
|
|
{% block content %}
|
|
{{ super() }}
|
|
|
|
<div class="column is-9">
|
|
<section class="section">
|
|
<div class="container">
|
|
<h2 class="title">Séances du module {{ module['fields']['Name'] }}</h2>
|
|
<table class="table is-bordered is-striped is-hoverable is-fullwidth">
|
|
<thead>
|
|
<tr>
|
|
<th>Module</th>
|
|
<th>Numéro de séance</th>
|
|
<th>Date</th>
|
|
<th>Intervenants</th>
|
|
<th>Participants prévus</th>
|
|
<th> Participants présents</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for workshop in workshops %}
|
|
<tr>
|
|
<td>
|
|
{% if workshop['fields'].get('Modules par session') %}
|
|
{{ module['fields']['Name'] }}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if workshop['fields'].get('Index') %}
|
|
{{ workshop['fields']['Index'] }}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if workshop['fields'].get('Date') %}
|
|
{{ workshop['fields']['Date'] }}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if intervenants %}
|
|
{% for intervenant in intervenants %}
|
|
{{ intervenant['fields']['Name']}}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if participants %}
|
|
{% for participant in participants %}
|
|
{{ participant['fields']['Nom complet']}}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% for present in workshop['fields']['Participants présents'] %}
|
|
{% for participant in participants %}
|
|
{% if participant['id'] == present %}
|
|
{{ participant['fields']['Nom complet']}}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</td>
|
|
<td>
|
|
<a class="button is-small is-primary" href="{{ url_for('airtable.show_workshop', module_id=module['id'], workshop_id=workshop['id']) }}">Fiche-Séance</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</section>
|
|
</div>
|
|
{% endblock %} |