author | Madhusudan.C.S <madhusudancs@gmail.com> |
Thu, 03 Sep 2009 00:17:30 +0530 | |
changeset 16 | a5bbfbe5feb1 |
parent 1 | 6d3b60546075 |
permissions | -rw-r--r-- |
1 | 1 |
from django import forms |
2 |
from django.utils.translation import ugettext_lazy as _ |
|
3 |
||
4 |
attrs_dict = { 'class': 'required' } |
|
5 |
||
6 |
#form for file field, lets you upload file |
|
7 |
class FileForm(forms.Form): |
|
8 |
file = forms.FileField() |
|
9 |
||
10 |
#form for creating a editable box, out of the content of the file |
|
11 |
class Uploaded_fileForm(forms.Form): |
|
12 |
content = forms.CharField(widget=forms.Textarea(attrs=attrs_dict),label=_(u'content')) |