]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/exporter/forms.py
send the app title and app description on check
[osqa.git] / forum_modules / exporter / forms.py
index 464712d7e521d64a6023c19b46d8d7fdc7ff6ca8..275580fd3665af85cacbeb3906964f8c38c626ce 100644 (file)
@@ -1,7 +1,14 @@
 from django import forms
 from django.utils.translation import ugettext as _
 
+FORMAT_CHOICES = (
+('tgz', _('tar.gz')),
+('zip', _('zip'))
+)
+
 class ExporterForm(forms.Form):
+    file_format = forms.ChoiceField(widget=forms.Select, choices=FORMAT_CHOICES, initial='zip',
+                                       label=_('File format'), help_text=_("File format of the compressed backup"), required=True)
     anon_data = forms.BooleanField(label=_('Anonymized data'), help_text=_('Don\'t export user data and make all content anonymous'), required=False)
     uplodaded_files = forms.BooleanField(label=_('Uploaded files'), help_text=_('Include uploaded files in the backup'), required=False, initial=True)
     import_skins_folder = forms.BooleanField(label=_('Skins folder'), help_text=_('Include skins folder in the backup'), required=False, initial=False)