mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-04 12:24:09 +01:00
Add "form-control" class to each "EmailField"
This commit is contained in:
@@ -135,7 +135,7 @@ class AccountFormGeneral(forms.ModelForm):
|
|||||||
|
|
||||||
|
|
||||||
class AccountFormMail(forms.Form, DynamicForm):
|
class AccountFormMail(forms.Form, DynamicForm):
|
||||||
email = forms.EmailField(label=ugettext_lazy("E-mail"), required=False)
|
email = forms.EmailField(label=ugettext_lazy("E-mail"), required=False, widget=forms.TextInput(attrs={"class": "form-control"}))
|
||||||
quota = forms.IntegerField(
|
quota = forms.IntegerField(
|
||||||
label=ugettext_lazy("Quota"),
|
label=ugettext_lazy("Quota"),
|
||||||
required=False,
|
required=False,
|
||||||
@@ -153,7 +153,8 @@ class AccountFormMail(forms.Form, DynamicForm):
|
|||||||
"Alias(es) of this mailbox. Indicate only one address per input, "
|
"Alias(es) of this mailbox. Indicate only one address per input, "
|
||||||
"press ENTER to add a new input. Use the '*' character to create "
|
"press ENTER to add a new input. Use the '*' character to create "
|
||||||
"a 'catchall' alias (ex: *@domain.tld)."
|
"a 'catchall' alias (ex: *@domain.tld)."
|
||||||
)
|
),
|
||||||
|
widget=forms.TextInput(attrs={"class": "form-control"})
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|||||||
@@ -17,14 +17,16 @@ class AliasForm(forms.ModelForm, DynamicForm):
|
|||||||
help_text=ugettext_lazy(
|
help_text=ugettext_lazy(
|
||||||
"The distribution list address. Use the '*' character to create a "
|
"The distribution list address. Use the '*' character to create a "
|
||||||
"'catchall' address (ex: *@domain.tld)."
|
"'catchall' address (ex: *@domain.tld)."
|
||||||
)
|
),
|
||||||
|
widget=forms.TextInput(attrs={"class": "form-control"})
|
||||||
)
|
)
|
||||||
recipients = forms.EmailField(
|
recipients = forms.EmailField(
|
||||||
label=ugettext_lazy("Recipients"), required=False,
|
label=ugettext_lazy("Recipients"), required=False,
|
||||||
help_text=ugettext_lazy(
|
help_text=ugettext_lazy(
|
||||||
"Mailbox(es) this alias will point to. Indicate only one address "
|
"Mailbox(es) this alias will point to. Indicate only one address "
|
||||||
"per input, press ENTER to add a new input."
|
"per input, press ENTER to add a new input."
|
||||||
)
|
),
|
||||||
|
widget=forms.TextInput(attrs={"class": "form-control"})
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ class ParametersForm(AdminParametersForm):
|
|||||||
notifications_sender = forms.EmailField(
|
notifications_sender = forms.EmailField(
|
||||||
label=_("Notifications sender"),
|
label=_("Notifications sender"),
|
||||||
initial="notification@modoboa.org",
|
initial="notification@modoboa.org",
|
||||||
help_text=_("The e-mail address used to send notitications")
|
help_text=_("The e-mail address used to send notitications"),
|
||||||
|
widget=forms.TextInput(attrs={"class": "form-control"})
|
||||||
)
|
)
|
||||||
|
|
||||||
visibility_rules = {
|
visibility_rules = {
|
||||||
|
|||||||
Reference in New Issue
Block a user