style upload button
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.2.1 (2012-11-24 11:11:44) stable
|
Version 2.2.1 (2012-11-27 10:11:07) stable
|
||||||
|
|||||||
@@ -754,6 +754,8 @@ def formstyle_bootstrap(form, fields):
|
|||||||
# flag submit button
|
# flag submit button
|
||||||
_submit = True
|
_submit = True
|
||||||
controls['_class'] = 'btn btn-primary'
|
controls['_class'] = 'btn btn-primary'
|
||||||
|
if controls['_type'] == 'file':
|
||||||
|
controls['_class'] = 'input-file'
|
||||||
|
|
||||||
if isinstance(controls, SELECT):
|
if isinstance(controls, SELECT):
|
||||||
controls.add_class('input-xlarge')
|
controls.add_class('input-xlarge')
|
||||||
|
|||||||
Reference in New Issue
Block a user