fixed class concatenation
This commit is contained in:
+3
-3
@@ -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
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user