emails: order options to have prefix before signature (#44409)
This commit is contained in:
parent
858521f6c4
commit
e99dc29f4e
|
@ -29,10 +29,10 @@ class ValidEmailField(forms.EmailField):
|
|||
|
||||
class EmailsForm(forms.Form):
|
||||
default_from_email = ValidEmailField(label=_('Default From'))
|
||||
email_signature = forms.CharField(label=_('Signature'), required=False,
|
||||
widget=forms.Textarea)
|
||||
global_email_prefix = forms.CharField(label=_('Prefix'), required=False,
|
||||
help_text=_('Custom prefix for emails subject (defaults to plateform title)'))
|
||||
email_signature = forms.CharField(label=_('Signature'), required=False,
|
||||
widget=forms.Textarea)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(EmailsForm, self).__init__(*args, **kwargs)
|
||||
|
|
|
@ -24,7 +24,7 @@ from .forms import EmailsForm
|
|||
|
||||
class HomeView(VariablesFormMixin, TemplateView):
|
||||
template_name = 'hobo/emails_home.html'
|
||||
variables = ['default_from_email', 'email_signature', 'global_email_prefix']
|
||||
variables = ['default_from_email', 'global_email_prefix', 'email_signature']
|
||||
form_class = EmailsForm
|
||||
success_message = _('Emails settings have been updated. '
|
||||
'It will take a few seconds to be effective.')
|
||||
|
|
Loading…
Reference in New Issue