Fix checkbox position on the login page
This commit is contained in:
parent
1bdfd2d0db
commit
9ee95f0bec
@ -12,6 +12,7 @@ Unreleased
|
|||||||
Fixes
|
Fixes
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
* Fix checkbox position on the login page
|
||||||
* Set ldap3 client_strategy from sync to sync-restartable
|
* Set ldap3 client_strategy from sync to sync-restartable
|
||||||
|
|
||||||
v1.0.0 - 2019-01-12
|
v1.0.0 - 2019-01-12
|
||||||
|
@ -31,7 +31,10 @@ class BootsrapForm(forms.Form):
|
|||||||
# Only tweak the field if it will be displayed
|
# Only tweak the field if it will be displayed
|
||||||
if not isinstance(field.widget, widgets.HiddenInput):
|
if not isinstance(field.widget, widgets.HiddenInput):
|
||||||
attrs = {}
|
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"
|
attrs['class'] = "form-control"
|
||||||
if isinstance(field.widget, (widgets.Input, widgets.Textarea)) and field.label:
|
if isinstance(field.widget, (widgets.Input, widgets.Textarea)) and field.label:
|
||||||
attrs["placeholder"] = field.label
|
attrs["placeholder"] = field.label
|
||||||
|
Loading…
Reference in New Issue
Block a user