No, you do not have to modify the framework. You can put your custom function wherever you want (within your own code) -- you can put it in a module and import it, or just define in a model file.
Anthony On Saturday, February 15, 2014 11:09:39 AM UTC-5, desta wrote: > > Thank you Anthony. > > If I create my custom function, where should it be located? In the > /gluon/sqlhtml.py? > > Thanks again. > > On Saturday, February 15, 2014 3:37:00 PM UTC+2, Anthony wrote: >> >> SQLFORM takes a "formstyle" argument, which can be specified for the Auth >> forms via the auth.settings.formstyle setting. It can be set to "bootstrap" >> for Bootstrap 2 forms. However, it can also be set to a custom function -- >> so you can create your own for Bootstrap 3. For an example of such a >> function, see: >> https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L762<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fweb2py%2Fweb2py%2Fblob%2Fmaster%2Fgluon%2Fsqlhtml.py%23L762&sa=D&sntz=1&usg=AFQjCNFmO-V0xog7yBEAvWU3TXkWKokO2w> >> . >> >> More generally, you can customize the Auth forms the same way you can >> customize any SQLFORM: >> http://web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms >> >> Anthony >> >> On Saturday, February 15, 2014 5:09:55 AM UTC-5, desta wrote: >>> >>> Hello everyone, >>> I am progressing well with my first application in web2py! >>> At this point I need to apply the view theme. The chosen theme is based >>> on the newest version of bootstrap. >>> >>> My question: >>> Is there a way to change the format of the automatically generated forms >>> to match that of the theme? >>> >>> My main worry is the authentication forms. How am I going to customize >>> the login/register/forget_password etc, and still keep the security >>> features embedded in those? >>> >>> Thank you. >>> >>> -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

