I still cant seem to change the default view from 'table3cols' to 'divs'
I tried editing the controller and form = auth() form.formstyle = 'divs' But I still get the table 3 cols layout. Thanks. On 1/25/11 9:25 AM, Anthony wrote:
You should find user.html in /applications/welcome/views/default/. It's a view file, so it's in the 'views' folder.Anthony On Tuesday, January 25, 2011 8:47:25 AM UTC-5, David J wrote: Thanks But I am confused by this; I am using the welcome app; I dont see these files (sample view default/user.html); so I am sure they loaded in web2py somewhere Excerpt from the book: web2py also includes a sample view "default/user.html" to render this function properly that looks like this: 1. 2. 3. 4. 5. 6. 7. {{extend'layout.html'}} <h2>{{=request <http://web2py.com/book/default/docstring/request>.args(0)}}</h2> {{=form}} {{ifrequest <http://web2py.com/book/default/docstring/request>.args(0)=='login':}} <a href="{{=URL <http://web2py.com/book/default/docstring/URL>(args='register')}}">register</a><br /> <a href="{{=URL <http://web2py.com/book/default/docstring/URL>(args='request_reset_password')}}">lost password</a><br /> {{pass}} Notice that this function simply displays a |form| and therefore it can customized using normal custom form syntax. The only caveat is that the displayed form depends on the value of |request.args(0)| therefore you may need if statement like this: On 1/25/11 8:24 AM, [email protected] wrote:http://web2py.com/book/default/chapter/08#Customizing-Auth <http://web2py.com/book/default/chapter/08#Customizing-Auth> _____________________________________________ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/1/25 David J. <[email protected]> How can I extend the default register form to add custom fields? I am not extending the Database; I just want to append more fields for validation. Thanks.

