Add class form-control to some inputs in python files

This commit is contained in:
Maël Solard
2014-08-07 18:38:41 +02:00
parent 420ed63d5c
commit 71f9b5b732
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ class GeneralParametersForm(parameters.AdminParametersForm):
('ldap', "LDAP")],
initial="local",
help_text=ugettext_lazy("The backend used for authentication"),
widget=InlineRadioSelect
widget=InlineRadioSelect(attrs={"class": "form-control"})
)
password_scheme = forms.ChoiceField(
@@ -99,7 +99,7 @@ class GeneralParametersForm(parameters.AdminParametersForm):
('directbind', ugettext_lazy("Direct bind"))],
initial='searchbind',
help_text=ugettext_lazy("Choose the authentication method to use"),
widget=InlineRadioSelect
widget=InlineRadioSelect(attrs={"class": "form-control"})
)
ldap_bind_dn = forms.CharField(
+3 -3
View File
@@ -23,15 +23,15 @@ class LoginForm(forms.Form):
class ProfileForm(forms.ModelForm):
oldpassword = forms.CharField(
label=ugettext_lazy("Old password"), required=False,
widget=forms.PasswordInput
widget=forms.PasswordInput(attrs={"class": "form-control"})
)
newpassword = forms.CharField(
label=ugettext_lazy("New password"), required=False,
widget=forms.PasswordInput
widget=forms.PasswordInput(attrs={"class": "form-control"})
)
confirmation = forms.CharField(
label=ugettext_lazy("Confirmation"), required=False,
widget=forms.PasswordInput
widget=forms.PasswordInput(attrs={"class": "form-control"})
)
class Meta: