Add support for import bootstrap setups from URLs

This commit is contained in:
Roberto Rosario
2012-10-16 02:22:39 -04:00
parent 7ce8652188
commit 85455e7647
7 changed files with 64 additions and 20 deletions

View File

@@ -45,7 +45,13 @@ class BootstrapSetupForm_dump(BootstrapSetupForm):
exclude = ('fixture',)
class BootstrapUploadForm(forms.Form):
class BootstrapFileImportForm(forms.Form):
file = forms.FileField(
label=_(u'Bootstrap setup file'),
)
class BootstrapURLImportForm(forms.Form):
url = forms.URLField(
label=_(u'Bootstrap setup URL'),
)