From f555122989666dee4d8f9847aa13b40ef7a9b9d8 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 4 Dec 2021 22:19:20 +0100 Subject: [PATCH] flashed messages --- app/templates/sco_page.html | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/app/templates/sco_page.html b/app/templates/sco_page.html index 442d9857..71e7016e 100644 --- a/app/templates/sco_page.html +++ b/app/templates/sco_page.html @@ -2,12 +2,13 @@ {% block styles %} {{super()}} - + - + {% endblock %} {% block title %} @@ -16,10 +17,19 @@ {% block content %} {% block scodoc_sidebar %} - {% include "sidebar.html" %} +{% include "sidebar.html" %} {% endblock %}
+
+ {% with messages = get_flashed_messages() %} + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} + {% endwith %} +
{% if sco.sem %} {% block formsemestre_header %} {% include "formsemestre_header.html" %} @@ -27,7 +37,7 @@ {% endif %} {% block app_content %} - page vide + page vide {% endblock %}
{% endblock %} @@ -43,9 +53,9 @@ -{% endblock %} +{% endblock %} \ No newline at end of file