fixed class concatenation

This commit is contained in:
mdipierro
2015-12-04 10:46:20 -06:00
parent dd180019a1
commit 6b880fb455
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -840,7 +840,7 @@ def formstyle_bootstrap(form, fields):
controls.add_class('span4') controls.add_class('span4')
if isinstance(label, LABEL): if isinstance(label, LABEL):
label['_class'] += ' control-label' label['_class'] = add_class(label.get('_class'),'control-label')
if _submit: if _submit:
# submit button has unwrapped label and controls, different class # submit button has unwrapped label and controls, different class
@@ -890,7 +890,7 @@ def formstyle_bootstrap3_stacked(form, fields):
e.add_class('form-control') e.add_class('form-control')
if isinstance(label, LABEL): if isinstance(label, LABEL):
label['_class'] += ' control-label' label['_class'] = add_class(label.get('_class'),'control-label')
parent.append(DIV(label, _controls, _class='form-group', _id=id)) parent.append(DIV(label, _controls, _class='form-group', _id=id))
return parent return parent
@@ -941,7 +941,7 @@ def formstyle_bootstrap3_inline_factory(col_label_size=3):
elif controls is None or isinstance(controls, basestring): elif controls is None or isinstance(controls, basestring):
_controls = P(controls, _class="form-control-static %s" % col_class) _controls = P(controls, _class="form-control-static %s" % col_class)
if isinstance(label, LABEL): if isinstance(label, LABEL):
label['_class'] += ' control-label %s' % label_col_class label['_class'] = add_class(label.get('_class'),'control-label %s' % label_col_class)
parent.append(DIV(label, _controls, _class='form-group', _id=id)) parent.append(DIV(label, _controls, _class='form-group', _id=id))
return parent return parent
+1 -1
View File
@@ -1423,7 +1423,7 @@ class Auth(object):
hmac_key=None, controller='default', function='user', hmac_key=None, controller='default', function='user',
cas_provider=None, signature=True, secure=False, cas_provider=None, signature=True, secure=False,
csrf_prevention=True, propagate_extension=None, csrf_prevention=True, propagate_extension=None,
url_index=None): url_index=None, jwt=None):
## next two lines for backward compatibility ## next two lines for backward compatibility
if not db and environment and isinstance(environment, DAL): if not db and environment and isinstance(environment, DAL):