style upload button

This commit is contained in:
mdipierro committed 2012-11-27 10:11:52 -06:00
1 parent 24531b85c6
commit c4ffbf4b2b
2 files changed
+3 -1

No files matched your search

+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')