project/scipycon/proceedings/forms.py
changeset 94 87e77aa18610
equal deleted inserted replaced
93:e86755df35da 94:87e77aa18610
       
     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     authors = forms.CharField(
       
    29         required=False, label=u'Author(s)',
       
    30         help_text=u'Comma separated list of User ID of the author(s).')