From d69667bbabda1e38228f40dcbf32ea066d454302 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Sun, 4 Feb 2018 20:39:47 -0500 Subject: [PATCH] Change checkboxes to checkbox buttons. --- babybuddy/templates/babybuddy/form_field.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/babybuddy/templates/babybuddy/form_field.html b/babybuddy/templates/babybuddy/form_field.html index 6a661ae7..405d481f 100644 --- a/babybuddy/templates/babybuddy/form_field.html +++ b/babybuddy/templates/babybuddy/form_field.html @@ -7,13 +7,15 @@
{% if field|field_type == "booleanfield" %} -
- {% if field.errors %} - {{ field|add_class:"custom-control-input is-invalid" }} - {% else %} - {{ field|add_class:"custom-control-input" }} - {% endif %} - +
+
{% elif field|field_type == "datetimefield" or field|field_type == "datefield" %}