Merge pull request #3910 from m1kola/patch-1

Fixes vertical html layout for BooleanField
This commit is contained in:
Tom Christie 2016-02-08 15:12:51 +00:00
commit df9b3fbde4

View File

@ -1,7 +1,7 @@
<div class="form-group {% if field.errors %}has-error{% endif %}"> <div class="form-group {% if field.errors %}has-error{% endif %}">
<div class="checkbox"> <div class="checkbox">
<label> <label>
<input type="checkbox" name="{{ field.name }}" value="true" {% if value %}checked{% endif %}> <input type="checkbox" name="{{ field.name }}" value="true" {% if field.value %}checked{% endif %}>
{% if field.label %}{{ field.label }}{% endif %} {% if field.label %}{{ field.label }}{% endif %}
</label> </label>
</div> </div>