allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/7] allura git commit: [#8143] better upload dialogs
Date Tue, 31 Jan 2017 20:27:04 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/d3cd1292
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/d3cd1292
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/d3cd1292

Branch: refs/heads/db/8143
Commit: d3cd129259d61d8181ed0b94ff52b3248f9777f8
Parents: bfca80f
Author: Dave Brondsema <dave@brondsema.net>
Authored: Mon Jan 30 13:48:28 2017 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Tue Jan 31 11:36:02 2017 -0500

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


http://git-wip-us.apache.org/repos/asf/allura/blob/d3cd1292/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