From 4111ca96a7932836df6f358f80c95240d08ca881 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 10 Dec 2018 15:27:01 +0100 Subject: [PATCH] admin: fix form error display --- passbook/admin/templates/blocks/form.html | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/passbook/admin/templates/blocks/form.html b/passbook/admin/templates/blocks/form.html index ed9a6cbd8..b1ad9bcfb 100644 --- a/passbook/admin/templates/blocks/form.html +++ b/passbook/admin/templates/blocks/form.html @@ -39,22 +39,14 @@ {{ field.help_text }} {% endif %} + {% for error in field.errors %} +
+
+ + {{ error }} +
+ {% endfor %} {% endif %} - {% for error in field.errors %} - {{error }} -
-
-
-
- -
- - {{ error }} - -
-
-
- {% endfor %} {% endfor %}