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.
19 lines
765 B
19 lines
765 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())
|
|
save_client_email = forms.BooleanField(label=u'Сохранить этот e-mail в анкете контрагента', initial=False,
|
|
required=False)
|
|
|