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"> <div class="col-sm-10">
{% if field|field_type == "booleanfield" %} {% if field|field_type == "booleanfield" %}
<div class="form-check"> <div class="form-check">
<label for="id_{{ field.name }}" class="form-check-label"> <label for="id_{{ field.name }}" class="form-check-label"></label>
{% if field.errors %} {% if field.errors %}
{{ field|add_class:"form-check-input is-invalid" }} {{ field|add_class:"form-check-input is-invalid" }}
{% else %} {% else %}
{{ field|add_class:"form-check-input" }} {{ field|add_class:"form-check-input" }}
{% endif %} {% endif %}
{{ field.label }} {{ field.label }}
</label>
</div> </div>
{% elif field|field_type == "datetimefield" or field|field_type == "datefield" %} {% elif field|field_type == "datetimefield" or field|field_type == "datefield" %}
<div class="form-group"> <div class="form-group">