style upload button

This commit is contained in:
mdipierro
2012-11-27 10:11:52 -06:00
parent 24531b85c6
commit c4ffbf4b2b
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-11-24 11:11:44) stable Version 2.2.1 (2012-11-27 10:11:07) stable
+2
View File
@@ -754,6 +754,8 @@ def formstyle_bootstrap(form, fields):
# flag submit button # flag submit button
_submit = True _submit = True
controls['_class'] = 'btn btn-primary' controls['_class'] = 'btn btn-primary'
if controls['_type'] == 'file':
controls['_class'] = 'input-file'
if isinstance(controls, SELECT): if isinstance(controls, SELECT):
controls.add_class('input-xlarge') controls.add_class('input-xlarge')