support radio buttons

This commit is contained in:
James Robert 2013-05-06 16:10:36 -03:00
parent ef89291e81
commit 02743e9e16

View File

@ -10,6 +10,22 @@
<span class="help-inline">{{ error }}</span>
{% endfor %}
{% if field.help_text %}
<p class="help-block">
{{ field.help_text|safe }}
</p>
{% endif %}
</div>
{% else %}{% if field|is_radio %}
<div class="controls">
<label class="radio">
{{ field }} <span>{{ field.label }}</span>
</label>
{% for error in field.errors %}
<span class="help-inline">{{ error }}</span>
{% endfor %}
{% if field.help_text %}
<p class="help-block">
{{ field.help_text|safe }}
@ -33,5 +49,5 @@
{% endif %}
</div>
{% endif %}
{% endif %}{% endif %}
</div>