From 99c55fa39262083dfcbd1ee66befb11370eddcaa Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Sat, 13 Jan 2018 08:28:54 -0500 Subject: [PATCH] Update checkbox structure (BS4 beta 3). --- babybuddy/templates/babybuddy/form_field.html | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/babybuddy/templates/babybuddy/form_field.html b/babybuddy/templates/babybuddy/form_field.html index 2bc23b08..b7cdd6f5 100644 --- a/babybuddy/templates/babybuddy/form_field.html +++ b/babybuddy/templates/babybuddy/form_field.html @@ -8,14 +8,13 @@
{% if field|field_type == "booleanfield" %}
- + + {% if field.errors %} + {{ field|add_class:"form-check-input is-invalid" }} + {% else %} + {{ field|add_class:"form-check-input" }} + {% endif %} + {{ field.label }}
{% elif field|field_type == "datetimefield" or field|field_type == "datefield" %}