From c88869dd5f2669c79a4d026ee77f79e5a2fe17e9 Mon Sep 17 00:00:00 2001 From: Iziram Date: Fri, 10 Nov 2023 16:00:13 +0100 Subject: [PATCH] date_utils : page test --- app/templates/assiduites/pages/test.j2 | 18 ++++++++++++++++++ app/views/assiduites.py | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 app/templates/assiduites/pages/test.j2 diff --git a/app/templates/assiduites/pages/test.j2 b/app/templates/assiduites/pages/test.j2 new file mode 100644 index 00000000..25f23546 --- /dev/null +++ b/app/templates/assiduites/pages/test.j2 @@ -0,0 +1,18 @@ + + + + + + + Test DateUtils + + + + +
+ + +
+ + + \ No newline at end of file diff --git a/app/views/assiduites.py b/app/views/assiduites.py index 7d87ac67..38eadef1 100644 --- a/app/views/assiduites.py +++ b/app/views/assiduites.py @@ -1297,6 +1297,16 @@ def generate_bul_list(etud: Identite, semestre: FormSemestre) -> str: ) +@bp.route("/test", methods=["GET", "POST"]) +@scodoc +@permission_required(Permission.ScoView) +def test(): + """XXX fonction de test a retirer""" + if request.method == "POST": + print("test date_utils : ", request.form) + return render_template("assiduites/pages/test.j2") + + # --- Fonctions internes ---