Merged.
This commit is contained in:
commit
7f8d6347ac
17
extras/website/website/forms.py
Normal file
17
extras/website/website/forms.py
Normal 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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user