From a7e3f92469e400c4363ba1425623a9d77362e68d Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Mon, 19 Dec 2022 12:03:37 +0100 Subject: [PATCH] Add form errors --- nummi/main/templates/main/form.html | 7 +++++++ nummi/main/templates/main/login.html | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/nummi/main/templates/main/form.html b/nummi/main/templates/main/form.html index 4f7354b..6ea161d 100644 --- a/nummi/main/templates/main/form.html +++ b/nummi/main/templates/main/form.html @@ -1,3 +1,10 @@ +{% if form.non_field_errors %} + +{% endif %} {% for field in form %} {{ field.errors }} diff --git a/nummi/main/templates/main/login.html b/nummi/main/templates/main/login.html index 0571400..3a44ede 100644 --- a/nummi/main/templates/main/login.html +++ b/nummi/main/templates/main/login.html @@ -13,6 +13,13 @@
{% csrf_token %} + {% if form.non_field_errors %} + + {% endif %} {% for field in form %} {{ field.errors }}