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: