From febc15c4c8c361f754da1c97c958d49c50e1c793 Mon Sep 17 00:00:00 2001 From: lehmann Date: Sat, 22 Jul 2023 22:40:09 +0200 Subject: [PATCH] Groups auto assignment --- app/static/css/partition_editor.css | 22 +- app/templates/scolar/partition_editor.j2 | 119 ++- .../scolar/students_groups_auto_assignment.j2 | 859 +++++++++++++++++- 3 files changed, 977 insertions(+), 23 deletions(-) diff --git a/app/static/css/partition_editor.css b/app/static/css/partition_editor.css index c74e3f2721..4697bc99e2 100644 --- a/app/static/css/partition_editor.css +++ b/app/static/css/partition_editor.css @@ -106,7 +106,7 @@ body:not(.editionActivated) .editing { @keyframes boing { 100% { - transform: translateY(-20px) + transform: translateY(-20px); } } @@ -152,6 +152,7 @@ body.editionActivated .filtres>div>div>div>div { color: #000; border-radius: 4px; outline: 4px solid #FFF; + padding: 2px; } /* Suppression */ @@ -355,7 +356,7 @@ body.editionActivated .filtres .nonEditable .move { } .groupe:has(.etudiants:empty) { - display: none; + display: none; } /* .filtres .unselect { @@ -365,6 +366,23 @@ body.editionActivated .filtres .nonEditable .move { /*****************************/ /* Zone Etudiants */ /*****************************/ +#zoneChoix .autoAffectation>a { + text-decoration: underline; +} + +#zoneChoix .dropZone { + background: #FFF; + border-radius: 8px; + border: 2px dashed #09C; + margin-bottom: 4px; + padding: 4px; + transition: 0.2s; +} + +.fileOver { + transform: scale(0.9); +} + #zoneChoix>.autoAffectation { background: #c9c9c9; color: #141414; diff --git a/app/templates/scolar/partition_editor.j2 b/app/templates/scolar/partition_editor.j2 index 98c8cf71ce..bff705b362 100644 --- a/app/templates/scolar/partition_editor.j2 +++ b/app/templates/scolar/partition_editor.j2 @@ -22,6 +22,23 @@

Étudiants

+
+ + + Aide à l'affectation dans les parcours +
Importer les résultats : +
+
+ Déposez le fichier .xlsx ou
+ +
+
+
+
Affecter automatiquement les étudiants du groupe
@@ -38,6 +55,7 @@
+ + \ No newline at end of file