From 4f361b5aad6a3abc78d2fb8eaf40eae20bcd13b3 Mon Sep 17 00:00:00 2001 From: Mathieu Clabaut Date: Sat, 16 Jan 2016 10:02:12 +0100 Subject: [PATCH] Fix #1170 by reverting fix to #1043 The problem is only a styling issue and not a HTML one. It was solved in 864dbe73f251110ea690978d73d510beaeb31364 by adding a `readonly ` class to labels which allow for properly vertical align with CSS. This reverts commit 353db90a64433d384aa27d1f2043536d6d8f76ce which add specific HTML for some filed types and which breaks display of comments. --- gluon/sqlhtml.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index cff80b93..c813950d 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -938,8 +938,6 @@ 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'] = add_class(label.get('_class'),'control-label %s' % label_col_class)