3 # Copyright (C) 2012 FinalsClub Foundation
4 from django.forms import ModelForm, IntegerField, HiddenInput, Form
5 from django.forms import TextInput
6 from django_filepicker.widgets import FPFileWidget
8 from karmaworld.apps.notes.models import Note
11 class NoteForm(ModelForm):
14 fields = ('name', 'tags',)
20 class NoteDeleteForm(Form):
21 note = IntegerField(widget=HiddenInput())
24 class FileUploadForm(ModelForm):
30 'fp_file': FPFileWidget(attrs={
31 'id': 'filepicker-file-upload',