fixed formstyle_bootstrap, thanks Anthony

This commit is contained in:
mdipierro
2012-12-12 22:03:39 -06:00
parent 06237a48c4
commit 380c78b758
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.0 (2012-12-12 21:48:42) rc1
Version 2.3.0 (2012-12-12 22:02:50) rc1
+4
View File
@@ -757,6 +757,10 @@ def formstyle_bootstrap(form, fields):
if controls['_type'] == 'file':
controls['_class'] = 'input-file'
# For password fields, which are wrapped in a CAT object.
if isinstance(controls, CAT) and isinstance(controls[0], INPUT):
controls[0].add_class('input-xlarge')
if isinstance(controls, SELECT):
controls.add_class('input-xlarge')