From 353db90a64433d384aa27d1f2043536d6d8f76ce Mon Sep 17 00:00:00 2001 From: niphlod Date: Mon, 21 Sep 2015 22:24:59 +0200 Subject: [PATCH] fixes #1043 , thanks @bobstjon --- gluon/sqlhtml.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 49fe24c4..aa43b0e7 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -938,6 +938,8 @@ def formstyle_bootstrap3_inline_factory(col_label_size=3): elif isinstance(controls, UL): for e in controls.elements("input"): e.add_class('form-control') + elif controls is None or isinstance(controls, basestring): + _controls = P(controls, _class="form-control-static %s" % col_class) if isinstance(label, LABEL): label['_class'] = 'control-label %s' % label_col_class