# -*- coding: utf-8 -*- from django import forms DOC_FORMATS = ( (u'pdf', u'PDF'), (u'xls', u'Excel'), ) class EmailForm(forms.Form): """Форма отправки документа по email.""" to = forms.EmailField(label=u'E-mail получателя') body = forms.CharField(label=u'Текст сообщения', max_length=1000, required=False, widget=forms.Textarea(attrs={'cols': 80, 'rows': 3})) doc_format = forms.ChoiceField(label=u'Отправить как', choices=DOC_FORMATS, initial=DOC_FORMATS[0][0], widget=forms.RadioSelect()) save_client_email = forms.BooleanField(label=u'Сохранить этот e-mail в анкете контрагента', initial=False, required=False)