Commit 9ee95f0b authored by Valentin Samir's avatar Valentin Samir

Fix checkbox position on the login page

parent 1bdfd2d0
......@@ -12,6 +12,7 @@ Unreleased
Fixes
-----
* Fix checkbox position on the login page
* Set ldap3 client_strategy from sync to sync-restartable
v1.0.0 - 2019-01-12
......
......@@ -31,7 +31,10 @@ class BootsrapForm(forms.Form):
# Only tweak the field if it will be displayed
if not isinstance(field.widget, widgets.HiddenInput):
attrs = {}
if isinstance(field.widget, (widgets.Input, widgets.Select, widgets.Textarea)):
if (
isinstance(field.widget, (widgets.Input, widgets.Select, widgets.Textarea)) and
not isinstance(field.widget, (widgets.CheckboxInput,))
):
attrs['class'] = "form-control"
if isinstance(field.widget, (widgets.Input, widgets.Textarea)) and field.label:
attrs["placeholder"] = field.label
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment