project/scipycon/proceedings/forms.py
changeset 94 87e77aa18610
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/scipycon/proceedings/forms.py	Tue Jul 13 17:59:47 2010 +0530
@@ -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).')