This commit is contained in:
Emanuel Schuetze 2012-07-18 21:23:59 +02:00
commit 7f8d6347ac

View File

@ -0,0 +1,17 @@
from django import forms
TOPIC_CHOICES = (
('question', 'General question'),
('bug', 'Bug report'),
('reference', 'Add OpenSlides reference'),
)
class ContactForm(forms.Form):
error_css_class = 'error'
required_css_class = 'required'
topic = forms.ChoiceField(choices=TOPIC_CHOICES)
subject = forms.CharField(max_length=100)
message = forms.CharField()
sender = forms.EmailField()
cc_myself = forms.BooleanField(required=False)