Fiche par étudiant

This commit is contained in:
Cléo Baras 2024-02-25 10:39:51 +01:00
parent eb56182407
commit 6821a02956
2 changed files with 23 additions and 34 deletions

View File

@ -587,13 +587,15 @@ class JuryPE(object):
tags = self._do_tags_list(self.interclasstags)
# Descripti
# Les données par UE
moyennes = {}
for tag in tags:
moyennes[tag] = {}
# Les données de synthèse
df = self.synthese[(tag, pe_moytag.CODE_MOY_COMPETENCES)]
for aggregat in pe_rcs.TOUS_LES_RCS_AVEC_PLUSIEURS_SEM:
for aggregat in pe_rcs.TOUS_LES_RCS:
moyennes[tag][aggregat] = {}
for comp in competences + ["Général"]:
moyennes[tag][aggregat][comp] = {

View File

@ -3,9 +3,10 @@
<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"-->
<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; }
@ -14,59 +15,45 @@
</head>
<body>
<main class="container">
<h1>Résultats PE de {{prenom}} {{nom}}</h1>
<h2>Résultats calculés par UEs</h2>
{% for tag in tags %}
<h3>Tag {{ tag }}</h3>
<h2>Tag <code>👜 {{ tag }}</code></h2>
{% endfor %}
<h2>Résultats calculés par Compétences</h2>
{% for tag in tags %}
<h3>{{ tag }}</h3>
<table>
<table class="striped">
<!-- Entêtes/Colonnes -->
<thead>
<tr>
<th rowspan="2"></th>
{% for col in colonnes_html %}
<th colspan="3">{{ col }}</th>
<th rowspan="2"></th>
{% for col in colonnes_html %}
<th colspan="2" data-theme="dark">{{ col }}</th>
{% endfor %}
<th colspan="3">Général</th>
<th colspan="2" data-theme="dark">Général</th>
</tr>
<tr>
{% for col in colonnes_html %}
<td></td><td>Groupe</td><td>Promo</td>
<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>{{ 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>
<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 %}
{% endfor %}
</tbody>
</table>
{% endfor %}
</main>main>
</body>
</html>