|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 from django import forms |
|
4 |
|
5 |
|
6 class ProceedingsForm(forms.Form): |
|
7 """Form for proceedings. |
|
8 """ |
|
9 |
|
10 title = forms.CharField(required=True, label=u'Title', |
|
11 widget=forms.TextInput(attrs={'size':'70'})) |
|
12 |
|
13 abstract = forms.CharField( |
|
14 widget=forms.Textarea(attrs={'cols': '80', 'rows': '8'}), |
|
15 required=True, label=u'Abstract', |
|
16 help_text=u'Upto 200 words. Content must strictly be in reSt format.') |
|
17 |
|
18 body = forms.CharField( |
|
19 widget=forms.Textarea(attrs={'cols': '80', 'rows': '25'}), |
|
20 required=False, label=u'Body', help_text=u'Approximately 7 pages. ' |
|
21 'Content must strictly be in reSt format.') |
|
22 |
|
23 rst_file = forms.FileField( |
|
24 required=False, label=u'reStructuredText file', |
|
25 help_text=u'The file should contain two sections, one with a heading ' |
|
26 "'Abstract' and other with a heading 'Body'.") |
|
27 |
|
28 self_author = forms.BooleanField( |
|
29 required=False, label=u'Author(yourself)', |
|
30 help_text=u'Check the field if you are one of the authors') |
|
31 |
|
32 additional_authors = forms.CharField( |
|
33 required=False, label=u'Additional Author(s)', |
|
34 help_text=u'User ID of each additional author separated by comma.') |