ScoDoc-PE/app/templates/pe/pe_view_resultats_etudiant.j2

59 lines
1.8 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/@picocss/pico@2/css/pico.min.css"/>
<style>
.flash { padding: 8px; color: white; border-radius: 15px; font-weight: bold; }
.success { background-color: limegreen; }
.error { background-color: lightcoral; }
</style>
</head>
<body>
<main class="container">
<h1>Résultats PE de {{prenom}} {{nom}}</h1>
{% for tag in tags %}
<h2>Tag <code>👜 {{ tag }}</code></h2>
<table class="striped">
<!-- Entêtes/Colonnes -->
<thead>
<tr>
<th rowspan="2"></th>
{% for col in colonnes_html %}
<th colspan="2" data-theme="dark">{{ col }}</th>
{% endfor %}
<th colspan="2" data-theme="dark">Général</th>
</tr>
<tr>
{% for col in colonnes_html %}
<th>Note</th><th>Class.</th>
{% endfor %}
<th>Note</th><th>Class.</th>
</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><span class="w3-badge w3-red">{{ moyennes[tag][aggregat][comp]["rang_groupe"] }}</span>
<span class="w3-badge w3-blue">{{ moyennes[tag][aggregat][comp]["rang_promo"] }}</span></td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
</main>main>
</body>
</html>