From 688809c3e5a1b6d78fd021e80b1d59df237a8739 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Wed, 18 Jul 2012 21:21:36 +0200 Subject: [PATCH] Added forms. --- extras/website/website/forms.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 extras/website/website/forms.py diff --git a/extras/website/website/forms.py b/extras/website/website/forms.py new file mode 100644 index 000000000..f7c81ca86 --- /dev/null +++ b/extras/website/website/forms.py @@ -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) +