From 18fcfddad69b8cbc128fa9542af46fe583281ea2 Mon Sep 17 00:00:00 2001 From: Sachi King Date: Sun, 23 Apr 2017 17:21:19 +1000 Subject: [PATCH] Errors should be big red boxes --- pinaxcon/templates/forms/widget_basic.html | 6 +++++- pinaxcon/templates/forms/widget_boolean_multiple.html | 7 ++++++- pinaxcon/templates/forms/widget_boolean_single.html | 6 +++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/pinaxcon/templates/forms/widget_basic.html b/pinaxcon/templates/forms/widget_basic.html index d8ae1caa..295dc5f4 100644 --- a/pinaxcon/templates/forms/widget_basic.html +++ b/pinaxcon/templates/forms/widget_basic.html @@ -1,5 +1,9 @@ +{% if field.errors %} + +{% endif %} -{{ field.errors }}
{{ field }} {% if field.help_text %} diff --git a/pinaxcon/templates/forms/widget_boolean_multiple.html b/pinaxcon/templates/forms/widget_boolean_multiple.html index d999891b..4208042f 100644 --- a/pinaxcon/templates/forms/widget_boolean_multiple.html +++ b/pinaxcon/templates/forms/widget_boolean_multiple.html @@ -1,11 +1,16 @@

{{ field.label }}{% if field.field.required %} *{% endif %} - {{ field.errors }}

{% if field.help_text %} {{ field.help_text|safe }} {% endif %} +{% if field.errors %} + +{% endif %} + {% for item in field %}
{{ item }} diff --git a/pinaxcon/templates/forms/widget_boolean_single.html b/pinaxcon/templates/forms/widget_boolean_single.html index a9eb74ef..c00b4102 100644 --- a/pinaxcon/templates/forms/widget_boolean_single.html +++ b/pinaxcon/templates/forms/widget_boolean_single.html @@ -1,7 +1,11 @@

{{ field.label }}{% if field.field.required %} *{% endif %} - {{ field.errors }}

+{% if field.errors %} + +{% endif %}