diff options
author | Madhusudan.C.S | 2009-10-30 15:09:12 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2009-10-30 15:09:12 +0530 |
commit | f89410559c20dd88d78ccd6b9d24e7941da9d5ff (patch) | |
tree | 3ad4fb64efc7523d1f3065e0dd03693871d6ce55 /project/kiwipycon/talk/forms.py | |
parent | 75f0773685ef0724d8ccc1eb1aab16bba55cd7a7 (diff) | |
download | scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.tar.gz scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.tar.bz2 scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.zip |
Added all the files from kiwipycon and the changes made for SciPy.in.
Diffstat (limited to 'project/kiwipycon/talk/forms.py')
-rw-r--r-- | project/kiwipycon/talk/forms.py | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/project/kiwipycon/talk/forms.py b/project/kiwipycon/talk/forms.py new file mode 100644 index 0000000..5059285 --- /dev/null +++ b/project/kiwipycon/talk/forms.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +from __future__ import absolute_import + +#django +from django import forms + +#django.contrib +from django.contrib.auth.models import User + +#tagging +from tagging.forms import TagField + +#kiwipycon +#from .models import TOPIC_CHOICES +from .models import DURATION_CHOICES +from .models import AUDIENCE_CHOICES + + +class TalkSubmitForm(forms.Form): + """Submit talk form + """ + authors_bio = forms.CharField(widget=forms.Textarea, required=True, + label=u'Author(s) and short bio', + help_text=u'(include a bit about your qualifications regarding your presentation topic)') + contact = forms.EmailField(required=True, label=u'E-Mail ID', + help_text=u'Provide your email ID', + max_length=1024, + widget=forms.TextInput(attrs={'size':'50'})) + title = forms.CharField(required=True, label=u'Talk title', + help_text=u'Title of proposed presentation', + max_length=1024, + widget=forms.TextInput(attrs={'size':'50'})) + abstract = forms.CharField(widget=forms.Textarea, required=True, + help_text=u'Summary of proposed presentation (around 30 words)') +# outline = forms.CharField(widget=forms.Textarea, required=True, +# help_text=u'Outline of proposed presentation (around 200 words)') +# topic = forms.ChoiceField(choices=TOPIC_CHOICES, +# label=u'Topic', help_text=u'Select one of the available options or enter other topic') +# topic_other = forms.CharField(label=u'Other topic', +# help_text=u'Description of your topic', +# max_length=255, +# required=False, +# widget=forms.TextInput(attrs={'size':'50'})) + topic = forms.CharField(label=u'Topic', + help_text=u'Description of your topic or comma separated tags', + max_length=255, + required=False, + widget=forms.TextInput(attrs={'size':'50'})) + duration = forms.ChoiceField(choices=DURATION_CHOICES, required=True, + label=u'Preferred timeslot', help_text=u'Select preferred time slot') + audience = forms.ChoiceField(choices=AUDIENCE_CHOICES, label=u'Itended audience', + help_text=u'Select one of the available options or enter other type of intended audience') +# audience_other = forms.CharField(label=u'Other intended audience', +# help_text=u'Description of intended audience (ie. Discordians)', +# max_length=128, +# required=False, +# widget=forms.TextInput(attrs={'size':'50'})) +# tags = TagField(max_length=255, +# widget=forms.TextInput(attrs={'size':'50'})) + +class TalkEditForm(TalkSubmitForm): + id = forms.CharField(widget=forms.HiddenInput) |