You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2017/01/31 20:27:04 UTC

[2/7] allura git commit: [#8143] better upload dialogs

[#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 <da...@brondsema.net>
Authored: Mon Jan 30 13:48:28 2017 -0500
Committer: Dave Brondsema <da...@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)",