summaryrefslogtreecommitdiff
path: root/project/scipycon/proceedings/forms.py
diff options
context:
space:
mode:
authorParth Buch2012-08-28 17:03:37 +0530
committerParth Buch2012-08-28 17:03:37 +0530
commit7e38fd922a8dd4742d09758cd1c94fb0302045d3 (patch)
treeb43d6ea8c47fb80e09e5e0bfd8759ac7d697addf /project/scipycon/proceedings/forms.py
downloadscipywebsite-7e38fd922a8dd4742d09758cd1c94fb0302045d3.tar.gz
scipywebsite-7e38fd922a8dd4742d09758cd1c94fb0302045d3.tar.bz2
scipywebsite-7e38fd922a8dd4742d09758cd1c94fb0302045d3.zip
Reboot for scipy 2012
Diffstat (limited to 'project/scipycon/proceedings/forms.py')
-rw-r--r--project/scipycon/proceedings/forms.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/project/scipycon/proceedings/forms.py b/project/scipycon/proceedings/forms.py
new file mode 100644
index 0000000..ddff13c
--- /dev/null
+++ b/project/scipycon/proceedings/forms.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+
+from django import forms
+
+
+class ProceedingsForm(forms.Form):
+ """Form for proceedings.
+ """
+
+ title = forms.CharField(required=True, label=u'Title',
+ widget=forms.TextInput(attrs={'size':'70'}))
+
+ abstract = forms.CharField(
+ widget=forms.Textarea(attrs={'cols': '80', 'rows': '8'}),
+ required=True, label=u'Abstract',
+ help_text=u'Upto 200 words. Content must strictly be in reSt format.')
+
+ body = forms.CharField(
+ widget=forms.Textarea(attrs={'cols': '80', 'rows': '25'}),
+ required=False, label=u'Body', help_text=u'Approximately 7 pages. '
+ 'Content must strictly be in reSt format.')
+
+ rst_file = forms.FileField(
+ required=False, label=u'reStructuredText file',
+ help_text=u'The file should contain two sections, one with a heading '
+ "'Abstract' and other with a heading 'Body'.")
+
+ authors = forms.CharField(
+ required=False, label=u'Author(s)',
+ help_text=u'Comma separated list of User ID of the author(s).')