From 49c84076deb79ea21a069b2858047963703b6d29 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Fri, 31 Mar 2017 15:01:31 -0300 Subject: [PATCH] Manage help_text and errors --- kfet/templates/kfet/form_field_snippet.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kfet/templates/kfet/form_field_snippet.html b/kfet/templates/kfet/form_field_snippet.html index 705427fe..34ebe58e 100644 --- a/kfet/templates/kfet/form_field_snippet.html +++ b/kfet/templates/kfet/form_field_snippet.html @@ -4,7 +4,10 @@
{{ field|add_class:'form-control' }} + {% if field.errors %} + {{field.errors}} + {% else %} {{field.help_text}} - {{ field.errors }} + {% endif %}