From c4ffbf4b2b82b38a6003351c4144df0697df18d8 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 27 Nov 2012 10:11:52 -0600 Subject: [PATCH] style upload button --- VERSION | 2 +- gluon/sqlhtml.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 4326af41..d077fca6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-11-24 11:11:44) stable +Version 2.2.1 (2012-11-27 10:11:07) stable diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 4db3d62c..e6d70b3c 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -754,6 +754,8 @@ def formstyle_bootstrap(form, fields): # flag submit button _submit = True controls['_class'] = 'btn btn-primary' + if controls['_type'] == 'file': + controls['_class'] = 'input-file' if isinstance(controls, SELECT): controls.add_class('input-xlarge')