do the label thing only for boolean fields

This commit is contained in:
Rodney Ewing 2013-06-26 07:36:11 -07:00
parent c345dcf875
commit 889564a3c1

View File

@ -47,7 +47,7 @@
{% endfor %}
{%- endif %}
{%- if field.description %}
{% if field.label.text == '' %}
{% if and field.type == 'BooleanField' %}
<label for="{{ field.label.field_id }}">{{ field.description|safe }}</label>
{% else %}
<p class="form_field_description">{{ field.description|safe }}</p>