This works for me: In web2py_ajax.html:
response.files.insert(3,URL('static','js/bootstrap.min.js'))
response.files.insert(4,URL('static','css/bootstrap.min.css'))
and in the function:
form=SQLFORM(..)
form.element(_type='submit')['_class']='btn btn-primary'
form.element(_type='button')['_class']='btn btn-info'
Kind regards,
Annet.

