mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
16 lines
471 B
Python
16 lines
471 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
from django import forms
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
class EmailServerForm(forms.Form):
|
|
domain = forms.CharField(label=_('domain'), max_length=256)
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
|
|
|
|
class AliasCreationForm(forms.Form):
|
|
email_name = forms.CharField(label=_('New alias (without @domain)'),
|
|
max_length=50)
|