From 71f9b5b732b65eea3526b11b2eba445c3bd0e1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Solard?= Date: Tue, 29 Jul 2014 13:53:14 +0200 Subject: [PATCH] Add class form-control to some inputs in python files --- modoboa/core/app_settings.py | 4 ++-- modoboa/core/forms.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modoboa/core/app_settings.py b/modoboa/core/app_settings.py index 3b3a77df6..9b8f516ab 100644 --- a/modoboa/core/app_settings.py +++ b/modoboa/core/app_settings.py @@ -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( diff --git a/modoboa/core/forms.py b/modoboa/core/forms.py index 2cf98f1f3..6d968f13d 100644 --- a/modoboa/core/forms.py +++ b/modoboa/core/forms.py @@ -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: