mirror of https://github.com/snachodog/mybuddy.git
Update checkbox structure (BS4 beta 3).
This commit is contained in:
parent
a9dfe686db
commit
99c55fa392
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue