X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/aac6ba0b5d9a5a245adcfd852f491387f5febc68..e4fb5288575b061914881b36c415f12cb2fe01e5:/forum_modules/exporter/forms.py diff --git a/forum_modules/exporter/forms.py b/forum_modules/exporter/forms.py index 94ce800..275580f 100644 --- a/forum_modules/exporter/forms.py +++ b/forum_modules/exporter/forms.py @@ -1,6 +1,15 @@ from django import forms from django.utils.translation import ugettext as _ +FORMAT_CHOICES = ( +('tgz', _('tar.gz')), +('zip', _('zip')) +) + class ExporterForm(forms.Form): - anon_data = forms.BooleanField(label=_('Anonimyzed data'), help_text=_('Don\'t export user data and make all content anonymous'), required=False) + 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) \ No newline at end of file