fixed input-xlarge class issue, thanks Anthony

This commit is contained in:
mdipierro
2012-09-03 08:55:54 -05:00
parent da7d3c6dbd
commit 65fec492f0
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.6 (2012-09-03 08:54:40) stable Version 2.0.6 (2012-09-03 08:55:49) stable
+3 -3
View File
@@ -702,17 +702,17 @@ def formstyle_bootstrap(form, fields):
_submit = False _submit = False
if isinstance(controls, INPUT): if isinstance(controls, INPUT):
controls['_class'] = 'input-xlarge' controls.add_class('input-xlarge')
if controls['_type'] == 'submit': if controls['_type'] == 'submit':
# flag submit button # flag submit button
_submit = True _submit = True
controls['_class'] = 'btn btn-primary' controls['_class'] = 'btn btn-primary'
if isinstance(controls, SELECT): if isinstance(controls, SELECT):
controls['_class'] = 'input-xlarge' controls.add_class('input-xlarge')
if isinstance(controls, TEXTAREA): if isinstance(controls, TEXTAREA):
controls['_class'] = 'input-xlarge' controls.add_class('input-xlarge')
if isinstance(label, LABEL): if isinstance(label, LABEL):
label['_class'] = 'control-label' label['_class'] = 'control-label'