mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
email_server: domains: Use Django forms and views
- Eliminate error-prone custom code and styling. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
b62dd2442c
commit
e85001f01f
6 files changed
+50
-94
No files matched your search
@@ -18,6 +18,13 @@ class EmailServerForm(forms.Form):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
|
||||
class DomainsForm(forms.Form):
|
||||
_mailname = forms.CharField(required=True, strip=True)
|
||||
mydomain = forms.CharField(required=True, strip=True)
|
||||
myhostname = forms.CharField(required=True, strip=True)
|
||||
mydestination = forms.CharField(required=True, strip=True)
|
||||
|
||||
|
||||
class AliasCreateForm(forms.Form):
|
||||
"""Form to create a new alias."""
|
||||
alias = forms.CharField(label=_('New alias (without @domain)'),
|
||||
|
||||
Reference in new issue
Block a user