fix for deprecated input-xlarge class to make input and select fields the same size.

This commit is contained in:
Oleg
2013-07-08 09:46:19 +02:00
parent d3d77e3c84
commit 59095ca11f
2 changed files with 5 additions and 5 deletions

View File

@@ -773,7 +773,7 @@ def formstyle_bootstrap(form, fields):
_submit = False
if isinstance(controls, INPUT):
controls.add_class('input-xlarge')
controls.add_class('span4')
if controls['_type'] == 'submit':
# flag submit button
_submit = True
@@ -783,13 +783,13 @@ def formstyle_bootstrap(form, fields):
# 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')
controls[0].add_class('span4')
if isinstance(controls, SELECT):
controls.add_class('input-xlarge')
controls.add_class('span4')
if isinstance(controls, TEXTAREA):
controls.add_class('input-xlarge')
controls.add_class('span4')
if isinstance(label, LABEL):
label['_class'] = 'control-label'

View File

@@ -2330,7 +2330,7 @@ class Auth(object):
if formstyle == 'bootstrap':
form.custom.widget.password_two[
'_class'] = 'input-xlarge'
'_class'] = 'span4'
addrow(
form, self.messages.verify_password +