Helptext now appears beside a Checkbox/Circle, not as a prargraph below anymore.

This commit is contained in:
2016-09-16 19:36:13 +02:00
parent 57b7d5a84b
commit ac78dc3d75

View File

@@ -4,7 +4,11 @@
<div>
<label {% if field.html_name != 'recaptcha' %}for="id_{{ field.html_name}}"{% endif %} class="field_name {{ field.css_classes }}">{{ field.label}}</label>
{{ field }}
{%if field.help_text %}<p class="help_text">{{field.help_text}}</p>{% endif %}
{% if field.help_text and not field.field.widget.input_type %}
{{field.help_text}}
{% elif field.help_text %}
<p class="help_text">{{field.help_text}}</p>
{% endif %}
{% if field.errors %}{{ field.errors }}{% endif %}
</div>
{% endfor %}