diff --git a/core/admin/mailu/ui/forms.py b/core/admin/mailu/ui/forms.py index 80d73fbe..22dbb351 100644 --- a/core/admin/mailu/ui/forms.py +++ b/core/admin/mailu/ui/forms.py @@ -87,6 +87,11 @@ class UserSettingsForm(flask_wtf.FlaskForm): displayed_name = fields.StringField(_('Displayed name')) spam_enabled = fields.BooleanField(_('Enable spam filter')) spam_threshold = fields_.IntegerSliderField(_('Spam filter tolerance')) + forward_enabled = fields.BooleanField(_('Enable forwarding')) + forward_keep = fields.BooleanField(_('Keep a copy of the emails')) + forward_destination = fields.StringField( + _('Destination'), [validators.Optional(), validators.Email()] + ) submit = fields.SubmitField(_('Save settings')) @@ -96,15 +101,6 @@ class UserPasswordForm(flask_wtf.FlaskForm): submit = fields.SubmitField(_('Update password')) -class UserForwardForm(flask_wtf.FlaskForm): - forward_enabled = fields.BooleanField(_('Enable forwarding')) - forward_keep = fields.BooleanField(_('Keep a copy of the emails')) - forward_destination = fields.StringField( - _('Destination'), [validators.Optional(), validators.Email()] - ) - submit = fields.SubmitField(_('Update')) - - class UserReplyForm(flask_wtf.FlaskForm): reply_enabled = fields.BooleanField(_('Enable automatic reply')) reply_subject = fields.StringField(_('Reply subject')) diff --git a/core/admin/mailu/ui/templates/sidebar.html b/core/admin/mailu/ui/templates/sidebar.html index d107c15f..db80d328 100644 --- a/core/admin/mailu/ui/templates/sidebar.html +++ b/core/admin/mailu/ui/templates/sidebar.html @@ -16,11 +16,6 @@ {% trans %}Update password{% endtrans %} -