better bootstrap3 forms, thanks Ricardo Pedroso
This commit is contained in:
@@ -25,11 +25,9 @@ else:
|
||||
## by default give a view/generic.extension to all actions from localhost
|
||||
## none otherwise. a pattern can be 'controller/function.extension'
|
||||
response.generic_patterns = ['*'] if request.is_local else []
|
||||
if request.vars.h:
|
||||
from gluon.sqlhtml import formstyle_bootstrap3_horizontal
|
||||
response.formstyle = formstyle_bootstrap3_horizontal(3)
|
||||
else:
|
||||
response.formstyle = 'bootstrap3'
|
||||
## choose a style for forms
|
||||
response.formstyle = 'bootstrap3_inline' # or 'bootstrap3_stacked' or 'bootstrap2' or other
|
||||
|
||||
## (optional) optimize handling of static files
|
||||
# response.optimize_css = 'concat,minify,inline'
|
||||
# response.optimize_js = 'concat,minify,inline'
|
||||
|
||||
Reference in New Issue
Block a user