fix for deprecated input-xlarge class to make input and select fields the same size.
This commit is contained in:
+4
-4
@@ -773,7 +773,7 @@ def formstyle_bootstrap(form, fields):
|
|||||||
_submit = False
|
_submit = False
|
||||||
|
|
||||||
if isinstance(controls, INPUT):
|
if isinstance(controls, INPUT):
|
||||||
controls.add_class('input-xlarge')
|
controls.add_class('span4')
|
||||||
if controls['_type'] == 'submit':
|
if controls['_type'] == 'submit':
|
||||||
# flag submit button
|
# flag submit button
|
||||||
_submit = True
|
_submit = True
|
||||||
@@ -783,13 +783,13 @@ def formstyle_bootstrap(form, fields):
|
|||||||
|
|
||||||
# For password fields, which are wrapped in a CAT object.
|
# For password fields, which are wrapped in a CAT object.
|
||||||
if isinstance(controls, CAT) and isinstance(controls[0], INPUT):
|
if isinstance(controls, CAT) and isinstance(controls[0], INPUT):
|
||||||
controls[0].add_class('input-xlarge')
|
controls[0].add_class('span4')
|
||||||
|
|
||||||
if isinstance(controls, SELECT):
|
if isinstance(controls, SELECT):
|
||||||
controls.add_class('input-xlarge')
|
controls.add_class('span4')
|
||||||
|
|
||||||
if isinstance(controls, TEXTAREA):
|
if isinstance(controls, TEXTAREA):
|
||||||
controls.add_class('input-xlarge')
|
controls.add_class('span4')
|
||||||
|
|
||||||
if isinstance(label, LABEL):
|
if isinstance(label, LABEL):
|
||||||
label['_class'] = 'control-label'
|
label['_class'] = 'control-label'
|
||||||
|
|||||||
+1
-1
@@ -2330,7 +2330,7 @@ class Auth(object):
|
|||||||
|
|
||||||
if formstyle == 'bootstrap':
|
if formstyle == 'bootstrap':
|
||||||
form.custom.widget.password_two[
|
form.custom.widget.password_two[
|
||||||
'_class'] = 'input-xlarge'
|
'_class'] = 'span4'
|
||||||
|
|
||||||
addrow(
|
addrow(
|
||||||
form, self.messages.verify_password +
|
form, self.messages.verify_password +
|
||||||
|
|||||||
Reference in New Issue
Block a user