bootstrap3 formstyle improvements

This commit is contained in:
Ricardo Pedroso
2014-08-16 19:28:42 +01:00
parent f84afaadbb
commit a6bf692b61
2 changed files with 76 additions and 38 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ 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 []
response.formstyle = 'bootstrap3'
if request.vars.h:
from gluon.sqlhtml import formstyle_bootstrap3_horizontal
response.formstyle = formstyle_bootstrap3_horizontal(3)
else:
response.formstyle = 'bootstrap3'
## (optional) optimize handling of static files
# response.optimize_css = 'concat,minify,inline'
# response.optimize_js = 'concat,minify,inline'