ScoDoc/app/templates/pe/pe_view_resultats_etudiant.j2

72 lines
1.9 KiB
Django/Jinja

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PE de {{ nom }} }}</title>
<!--link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css"-->
<style>
.flash { padding: 8px; color: white; border-radius: 15px; font-weight: bold; }
.success { background-color: limegreen; }
.error { background-color: lightcoral; }
</style>
</head>
<body>
<h1>Résultats PE de {{prenom}} {{nom}}</h1>
<h2>Résultats calculés par UEs</h2>
{% for tag in tags %}
<h3>Tag {{ tag }}</h3>
{% endfor %}
<h2>Résultats calculés par Compétences</h2>
{% for tag in tags %}
<h3>{{ tag }}</h3>
<table>
<!-- Entêtes/Colonnes -->
<thead>
<tr>
<th rowspan="2"></th>
{% for col in colonnes_html %}
<th colspan="3">{{ col }}</th>
{% endfor %}
<th colspan="3">Général</th>
</tr>
<tr>
{% for col in colonnes_html %}
<td></td><td>Groupe</td><td>Promo</td>
{% endfor %}
</tr>
</thead>
<tbody>
{% for aggregat in moyennes[tag] %}
<tr>
<td>{{ aggregat }}</td>
{% for comp in moyennes[tag][aggregat] %}
<td>{{ moyennes[tag][aggregat][comp]["note"] }}</td>
<td>{{ moyennes[tag][aggregat][comp]["rang_groupe"] }}</td>
<td>{{ moyennes[tag][aggregat][comp]["rang_promo"] }}</td>
{% endfor %}
<td>{{ moyennes[tag][aggregat]["Général"]["note"] }}</td>
<td>{{ moyennes[tag][aggregat]["Général"]["rang_groupe"] }}</td>
<td>{{ moyennes[tag][aggregat]["Général"]["rang_promo"] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
</body>
</html>