From ac78dc3d757cfc5f8752b09316769a40e571b7f8 Mon Sep 17 00:00:00 2001 From: Christian Berg Date: Fri, 16 Sep 2016 19:36:13 +0200 Subject: [PATCH] Helptext now appears beside a Checkbox/Circle, not as a prargraph below anymore. --- src/kasu/templates/form.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/kasu/templates/form.html b/src/kasu/templates/form.html index f5fe6e6..db44ca2 100644 --- a/src/kasu/templates/form.html +++ b/src/kasu/templates/form.html @@ -2,9 +2,13 @@ {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %} {% for field in form.visible_fields %}
- - {{ field }} - {%if field.help_text %}

{{field.help_text}}

{% endif %} - {%if field.errors %}{{ field.errors }}{% endif %} + + {{ field }} + {% if field.help_text and not field.field.widget.input_type %} + {{field.help_text}} + {% elif field.help_text %} +

{{field.help_text}}

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