You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
899 B

# -*- 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())
insert_sign = forms.BooleanField(label=u'Вставить печать и подпись', initial=False,
required=False)
save_client_email = forms.BooleanField(label=u'Сохранить этот e-mail в анкете контрагента', initial=False,
required=False)