fixed input-xlarge class issue, thanks Anthony
This commit is contained in:
@@ -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
@@ -702,17 +702,17 @@ def formstyle_bootstrap(form, fields):
|
||||
_submit = False
|
||||
|
||||
if isinstance(controls, INPUT):
|
||||
controls['_class'] = 'input-xlarge'
|
||||
controls.add_class('input-xlarge')
|
||||
if controls['_type'] == 'submit':
|
||||
# flag submit button
|
||||
_submit = True
|
||||
controls['_class'] = 'btn btn-primary'
|
||||
|
||||
if isinstance(controls, SELECT):
|
||||
controls['_class'] = 'input-xlarge'
|
||||
controls.add_class('input-xlarge')
|
||||
|
||||
if isinstance(controls, TEXTAREA):
|
||||
controls['_class'] = 'input-xlarge'
|
||||
controls.add_class('input-xlarge')
|
||||
|
||||
if isinstance(label, LABEL):
|
||||
label['_class'] = 'control-label'
|
||||
|
||||
Reference in New Issue
Block a user