Fix checkbox position on the login page
This commit is contained in:
parent
1bdfd2d0db
commit
9ee95f0bec
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue