aboutsummaryrefslogtreecommitdiff
path: root/app/templates/flash_messages.html
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-03 22:43:10 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-03 22:43:10 +0530
commit00baa0ccc5971b3e579345748dafc59c4b6a9907 (patch)
tree7710c6769fa9dce79bcb38752772a1497ec11538 /app/templates/flash_messages.html
parentf8a9c42b1011f5137a9f7a61566e7e5f1df60b1a (diff)
Added Templates
* Contact Us form * Base Index * Flash error template
Diffstat (limited to 'app/templates/flash_messages.html')
-rw-r--r--app/templates/flash_messages.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/templates/flash_messages.html b/app/templates/flash_messages.html
new file mode 100644
index 0000000..b524c24
--- /dev/null
+++ b/app/templates/flash_messages.html
@@ -0,0 +1,7 @@
+{% with messages = get_flashed_messages(with_categories=true) %}
+ {% if messages %}
+ {% for category, message in messages %}
+ <div class="alert alert-{{ category }}">{{ message }}</div>
+ {% endfor %}
+ {% endif %}
+{% endwith %} \ No newline at end of file