diff --git a/app/templates/base.j2 b/app/templates/base.j2 index 640a4d72..27618bba 100644 --- a/app/templates/base.j2 +++ b/app/templates/base.j2 @@ -62,7 +62,7 @@ {% endblock %} {% block content %} -
+
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %} @@ -72,6 +72,14 @@ {# application content needs to be provided in the app_content block #} {% block app_content %}{% endblock %}
+ {% endblock %} {% block scripts %} diff --git a/app/templates/flashed_messages.j2 b/app/templates/flashed_messages.j2 index 5ded7524..b96ee27d 100644 --- a/app/templates/flashed_messages.j2 +++ b/app/templates/flashed_messages.j2 @@ -1,9 +1,18 @@ -{# Message flask : utilisé uniquement par les anciennes pages ScoDoc #} -{# -*- mode: jinja-html -*- #} -
+{# Messages flask (flash) #} + +
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %} - + {% endfor %} {% endwith %} -
\ No newline at end of file +
+ + diff --git a/app/templates/sco_page.j2 b/app/templates/sco_page.j2 index 1e1e7843..a6e200d6 100644 --- a/app/templates/sco_page.j2 +++ b/app/templates/sco_page.j2 @@ -24,13 +24,7 @@ {% endblock %}
-
- {% with messages = get_flashed_messages(with_categories=true) %} - {% for category, message in messages %} - - {% endfor %} - {% endwith %} -
+ {% include "flashed_messages.j2" %} {% if sco.sem %} {% block formsemestre_header %} {% include "formsemestre_header.j2" %}