37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
{% extends 'airtable_base.html' %}
|
|
|
|
{% block content %}
|
|
{{ super() }}
|
|
|
|
<div class="column is-9">
|
|
<section class="section">
|
|
<div class="container">
|
|
<h2 class="title">Suivi des modules</h2>
|
|
<table class="table is-bordered is-striped is-hoverable is-fullwidth">
|
|
<thead>
|
|
<tr>
|
|
<th>Nom</th>
|
|
<th>Matière</th>
|
|
<th>Spécialité</th>
|
|
<th>Formation</th>
|
|
<th>Professeur</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for record in records %}
|
|
<tr>
|
|
<td>{{ record['fields']['Name'] }}</td>
|
|
<td>{{ record['fields']['Matière'] }}</td>
|
|
<td>{{ record['fields']['Spécialité'] }}</td>
|
|
<td>{{ record['fields']['Formation'] }}</td>
|
|
<td>{{ (profs.get(record['fields']['Professeur'][0]) if 'Professeur' in record['fields'] else {}).get('fields', {}).get('Name')|default('Not Available') }}</td>
|
|
<td><a class="button is-small is-primary" href="{{ url_for('airtable.edit_record', record_id=record['id']) }}">Edit</a></td>
|
|
</tr>
|
|
</{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
{% endblock %} |