From 574fae2170157eaca454cb3f2885f3c805b09f37 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 7 Oct 2023 10:14:50 +0200 Subject: [PATCH] - downgrade werkzeug (for Flask-Login compat) - remove unimplemented preferences (forcer_present, assi_etat_defaut) --- app/scodoc/sco_preferences.py | 21 ++++++++++---------- app/templates/assiduites/widgets/differee.j2 | 6 +++--- app/views/assiduites.py | 4 ++-- requirements-3.11.txt | 2 +- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/app/scodoc/sco_preferences.py b/app/scodoc/sco_preferences.py index 2511a2f8f..88970b6b9 100644 --- a/app/scodoc/sco_preferences.py +++ b/app/scodoc/sco_preferences.py @@ -631,16 +631,16 @@ class BasePreferences: "category": "assi", }, ), - ( - "forcer_present", - { - "initvalue": 0, - "title": "Forcer l'appel des présents", - "input_type": "boolcheckbox", - "labels": ["non", "oui"], - "category": "assi", - }, - ), + # ( + # "forcer_present", + # { + # "initvalue": 0, + # "title": "Forcer l'appel des présents", + # "input_type": "boolcheckbox", + # "labels": ["non", "oui"], + # "category": "assi", + # }, + # ), ( "periode_defaut", { @@ -656,6 +656,7 @@ class BasePreferences: ( "assi_etat_defaut", { + "explanation": "⚠ non fonctionnel, travaux en cours !", "initvalue": "aucun", "input_type": "menu", "labels": ["aucun", "present", "retard", "absent"], diff --git a/app/templates/assiduites/widgets/differee.j2 b/app/templates/assiduites/widgets/differee.j2 index 3496e9c9e..f6efc6f5d 100644 --- a/app/templates/assiduites/widgets/differee.j2 +++ b/app/templates/assiduites/widgets/differee.j2 @@ -273,7 +273,7 @@