aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/display_errors.html
diff options
context:
space:
mode:
Diffstat (limited to 'ihatemoney/templates/display_errors.html')
-rw-r--r--ihatemoney/templates/display_errors.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/ihatemoney/templates/display_errors.html b/ihatemoney/templates/display_errors.html
new file mode 100644
index 0000000..9e19605
--- /dev/null
+++ b/ihatemoney/templates/display_errors.html
@@ -0,0 +1,5 @@
+{% for field_name, field_errors in form.errors.items() if field_errors %}
+ {% for error in field_errors %}
+ <p class="alert alert-danger"><strong>{{ form[field_name].label.text }}:</strong> {{ error }}</p>
+ {% endfor %}
+{% endfor %}