mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
19 lines
727 B
Python
19 lines
727 B
Python
from django import forms
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
class ComposeMailForm(forms.Form):
|
|
from_ = forms.CharField(label=_("From"))
|
|
to = forms.CharField(label=_("To"))
|
|
cc = forms.CharField(label=_("Cc"), required=False)
|
|
cci = forms.CharField(label=_("Cci"), required=False)
|
|
subject = forms.CharField(label=_("Subject"), max_length=255, required=False)
|
|
|
|
origmsgid = forms.CharField(label="", widget=forms.HiddenInput(), required=False)
|
|
|
|
class FolderForm(forms.Form):
|
|
oldname = forms.CharField(label="", widget=forms.HiddenInput(), required=False)
|
|
name = forms.CharField()
|
|
|
|
class AttachmentForm(forms.Form):
|
|
attachment = forms.FileField(label=_("Select a file"))
|