Added forms.

This commit is contained in:
Emanuel Schuetze 2012-07-18 21:21:36 +02:00
parent 33489522eb
commit 688809c3e5

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)