ScoDoc/app/templates/pe/pe_view_resultats_etudiant.j2

59 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-02-24 10:48:38 +01:00
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-02-25 10:39:51 +01:00
<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"/>
2024-02-24 10:48:38 +01:00
<style>
.flash { padding: 8px; color: white; border-radius: 15px; font-weight: bold; }
.success { background-color: limegreen; }
.error { background-color: lightcoral; }
</style>
</head>
<body>
2024-02-25 10:39:51 +01:00
<main class="container">
2024-02-24 10:48:38 +01:00
<h1>Résultats PE de {{prenom}} {{nom}}</h1>
{% for tag in tags %}
2024-02-25 10:39:51 +01:00
<h2>Tag <code>👜 {{ tag }}</code></h2>
2024-02-24 10:48:38 +01:00
2024-02-25 10:39:51 +01:00
<table class="striped">
2024-02-24 12:21:42 +01:00
<!-- Entêtes/Colonnes -->
<thead>
<tr>
2024-02-25 10:39:51 +01:00
<th rowspan="2"></th>
{% for col in colonnes_html %}
<th colspan="2" data-theme="dark">{{ col }}</th>
2024-02-24 12:21:42 +01:00
{% endfor %}
2024-02-25 10:39:51 +01:00
<th colspan="2" data-theme="dark">Général</th>
2024-02-24 12:21:42 +01:00
</tr>
<tr>
{% for col in colonnes_html %}
2024-02-25 10:39:51 +01:00
<th>Note</th><th>Class.</th>
2024-02-24 12:21:42 +01:00
{% endfor %}
2024-02-25 10:39:51 +01:00
<th>Note</th><th>Class.</th>
2024-02-24 12:21:42 +01:00
</tr>
</thead>
<tbody>
{% for aggregat in moyennes[tag] %}
<tr>
2024-02-25 10:39:51 +01:00
<td>{{ aggregat }}</td>
{% for comp in moyennes[tag][aggregat] %}
2024-02-24 12:21:42 +01:00
<td>{{ moyennes[tag][aggregat][comp]["note"] }}</td>
2024-02-25 10:39:51 +01:00
<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 %}
2024-02-24 12:21:42 +01:00
</tr>
2024-02-25 10:39:51 +01:00
{% endfor %}
2024-02-24 12:21:42 +01:00
</tbody>
</table>
2024-02-24 10:48:38 +01:00
{% endfor %}
2024-02-25 10:39:51 +01:00
</main>main>
2024-02-24 10:48:38 +01:00
</body>
</html>