Merge pull request #126 from swayf/feature/bootstrap_same_control_size

fix for deprecated input-xlarge class to make input and select fields...
This commit is contained in:
mdipierro
2013-07-08 01:03:54 -07:00
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 +