Merge pull request #480 from rpedroso/bs3

bootstrap3 formstyle improvements
This commit is contained in:
mdipierro
2014-08-20 21:16:56 -05:00
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'