you can code your own formstyle and pass it to formstyle (or set the global response.formstyle). On top of accepting what's included in web2py as a string, it accepts a callable for "bring your own".
On Tuesday, October 25, 2016 at 4:52:12 PM UTC+2, Marko Seppälä wrote: > > Hi, > > I'm trying to set custom form styles for auth, like register or login > form. I would like to set completely new formstyle function for that, so > that it's easy to use over and over again just setting formstyle = > my_formstyle in appconfig.ini. > > How I could do that? I can use formstyle_bootstrap3_inline_factory > from sqlhtml.py as a starting point for my own function. But where should I > put that function? And how to tell web2py where to look for that function? > Obviously I don't want to touch original source code. > > Thanks! > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.