Update checkbox structure (BS4 beta 3).

This commit is contained in:
Christopher Charbonneau Wells 2018-01-13 08:28:54 -05:00
parent a9dfe686db
commit 99c55fa392
1 changed files with 7 additions and 8 deletions

View File

@ -8,14 +8,13 @@
<div class="col-sm-10">
{% if field|field_type == "booleanfield" %}
<div class="form-check">
<label for="id_{{ field.name }}" class="form-check-label">
{% if field.errors %}
{{ field|add_class:"form-check-input is-invalid" }}
{% else %}
{{ field|add_class:"form-check-input" }}
{% endif %}
{{ field.label }}
</label>
<label for="id_{{ field.name }}" class="form-check-label"></label>
{% if field.errors %}
{{ field|add_class:"form-check-input is-invalid" }}
{% else %}
{{ field|add_class:"form-check-input" }}
{% endif %}
{{ field.label }}
</div>
{% elif field|field_type == "datetimefield" or field|field_type == "datefield" %}
<div class="form-group">