allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [2/8] allura git commit: [#8143] better upload dialogs
Date Mon, 06 Feb 2017 15:07:55 GMT
[#8143] better upload dialogs


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/36a13414
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/36a13414
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/36a13414

Branch: refs/heads/master
Commit: 36a13414303a03567dda231bca5bd2983c0a0c37
Parents: 9f4f0fb
Author: Dave Brondsema <dave@brondsema.net>
Authored: Mon Jan 30 13:48:28 2017 -0500
Committer: Kenton Taylor <ktaylor@slashdotmedia.com>
Committed: Mon Feb 6 15:03:45 2017 +0000

----------------------------------------------------------------------
 Allura/allura/ext/admin/widgets.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/36a13414/Allura/allura/ext/admin/widgets.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/widgets.py b/Allura/allura/ext/admin/widgets.py
index de8046f..633c374 100644
--- a/Allura/allura/ext/admin/widgets.py
+++ b/Allura/allura/ext/admin/widgets.py
@@ -149,7 +149,7 @@ class ScreenshotAdmin(ff.ForgeForm):
     def fields(self):
         fields = [
             ew.InputField(name='screenshot', field_type='file',
-                          label='New Screenshot'),
+                          label='New Screenshot', attrs={'accept': 'image/*'}),
             ew.InputField(name='caption',
                           field_type="text",
                           label='Caption',
@@ -213,7 +213,7 @@ class MetadataAdmin(ff.AdminForm):
             append_to='bottom',
             extra_field_on_focus_name='feature',
             field=FeaturesField())
-        icon = ew.FileField(label='Icon')
+        icon = ew.FileField(label='Icon', attrs={'accept': 'image/*'})
         external_homepage = ew.InputField(field_type="text", label='Homepage',
                                           validator=fev.URL(add_http=True))
         video_url = ew.InputField(field_type="text", label="Video (YouTube)",


Mime
View raw message