mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
It is a really simple implementation but I think it will be enough for a begining. Users can add multiple attachments with a message, each attachment must not be larger than a customizable limit. see #38
15 lines
507 B
Python
15 lines
507 B
Python
from django import forms
|
|
from django.utils.translation import ugettext as _
|
|
|
|
class ComposeMailForm(forms.Form):
|
|
from_ = forms.CharField(label=_("From"))
|
|
to = forms.CharField(label=_("To"), widget=forms.Textarea())
|
|
cc = forms.CharField(label=_("Cc"), widget=forms.Textarea(), required=False)
|
|
subject = forms.CharField(label=_("Subject"), max_length=255)
|
|
|
|
class FolderForm(forms.Form):
|
|
name = forms.CharField()
|
|
|
|
class AttachmentForm(forms.Form):
|
|
attachment = forms.FileField(label="")
|