Helptext now appears beside a Checkbox/Circle, not as a prargraph below anymore.
This commit is contained in:
@@ -2,9 +2,13 @@
|
||||
{% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
|
||||
{% for field in form.visible_fields %}
|
||||
<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.errors %}{{ field.errors }}{% endif %}
|
||||
<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 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 %}
|
||||
|
||||
Reference in New Issue
Block a user