Files
modoboa/extensions/webmail/forms.py
T
Antoine Nguyen 28e8e736ee wip: global UI refactoring
* More work on the webmail

see #204
2012-03-30 11:15:34 +02:00

17 lines
585 B
Python

from django import forms
from django.utils.translation import ugettext_noop as _
class ComposeMailForm(forms.Form):
from_ = forms.CharField(label=_("From"))
to = forms.CharField(label=_("To"))
cc = forms.CharField(label=_("Cc"), 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):
name = forms.CharField()
class AttachmentForm(forms.Form):
attachment = forms.FileField(label=_("Select a file"))