mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Add class form-control to some inputs in python files
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user