- {% elif category == 'error' %}
-
- {% endif %}
-
- {{ message }}
-
+
+ {% with messages = get_flashed_messages(with_categories=true) %}
+ {% if messages %}
+ {% for category, message in messages %}
+
+
+ {% if category == 'message' or category == 'info' %}
+
+ {% elif category == 'success' %}
+
+ {% elif category == 'warning' %}
+
+ {% elif category == 'error' %}
+
+ {% endif %}
+
+ {{ message }}
- {% endfor %}
- {% endif %}
- {% endwith %}
+
+ {% endfor %}
+ {% endif %}
+ {% endwith %}
- {# application content needs to be provided in the app_content block #}
- {% block app_content %}{% endblock %}
+ {# application content needs to be provided in the app_content block #}
+ {% block app_content %}{% endblock %}
+{% block scripts %}{% endblock %}