From 6cf7b7b606c45495f6d7cd96589746b5e7517372 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 3 Sep 2012 08:55:54 -0500 Subject: [PATCH] fixed input-xlarge class issue, thanks Anthony --- VERSION | 2 +- gluon/sqlhtml.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index f4b17644..db2abfd7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.6 (2012-09-03 08:54:40) stable +Version 2.0.6 (2012-09-03 08:55:49) stable diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 959d40b3..b94f324b 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -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'