stage fix
[redakcja.git] / apps / catalogue / forms.py
index 6a56e76..d1235e8 100644 (file)
@@ -44,6 +44,8 @@ class DocumentsUploadForm(forms.Form):
         Form used for uploading new documents.
     """
     file = forms.FileField(required=True, label=_('ZIP file'))
+    dirs = forms.BooleanField(label=_('Directories are documents in chunks'),
+            widget = forms.CheckboxInput(attrs={'disabled':'disabled'}))
 
     def clean(self):
         file = self.cleaned_data['file']
@@ -65,8 +67,8 @@ class ChunkForm(forms.ModelForm):
     """
     user = forms.ModelChoiceField(queryset=
         User.objects.annotate(count=Count('chunk')).
-        order_by('-count', 'last_name', 'first_name'), required=False)
-
+        order_by('-count', 'last_name', 'first_name'), required=False,
+        label=_('Assigned to'))
 
     class Meta:
         model = Chunk