Fixes vertical html layout for BooleanField

`HTMLFormRenderer` renders `BooleanField` field as not checked if vertical layout are used.
This commit is contained in:
Mikalai Radchuk 2016-02-08 17:07:16 +03:00
parent a3f513c83c
commit 59ab3a291c

View File

@ -1,7 +1,7 @@
<div class="form-group {% if field.errors %}has-error{% endif %}">
<div class="checkbox">
<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 %}
</label>
</div>