fixed formstyle_bootstrap, thanks Anthony
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.3.0 (2012-12-12 21:48:42) rc1
|
||||
Version 2.3.0 (2012-12-12 22:02:50) rc1
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user