2 from django import forms
5 class NewDirForm(forms.Form):
6 host = forms.CharField(label=u'Host', max_length=256, widget=forms.HiddenInput())
7 path = forms.CharField(label=u'Ścieżka', max_length=1024, widget=forms.HiddenInput())
8 name = forms.CharField(label=u'Nazwa', max_length=256)
11 class RenameForm(forms.Form):
12 host = forms.CharField(label=u'Host', max_length=256, widget=forms.HiddenInput())
13 path = forms.CharField(label=u'Ścieżka', max_length=1024, widget=forms.HiddenInput())
14 src = forms.CharField(label=u'Stara nazwa', max_length=256, widget=forms.HiddenInput())
15 dst = forms.CharField(label=u'Nowa nazwa', max_length=256)
18 class ArchiveForm(NewDirForm):
24 (ZIP, 'Archiwum zip'),
25 (GZIP, 'Archiwum tar.gz'),
26 (BZIP, 'Archiwum tar.bz2'),
29 type = forms.ChoiceField(label=u'Typ', choices=TYPE_CHOICES, initial=ZIP)