Re: [web2py] problem while adding a radio button in login form

2015-12-06 Thread Richard Vézina
It form = auth() Below example of my login form refactoring : def user(): """ exposes: http:///[app]/default/user/login http:///[app]/default/user/logout http:///[app]/default/user/register http:///[app]/default/user/profile http:///[app]/default/u

Re: [web2py] problem while adding a radio button in login form

2015-12-06 Thread Richard Vézina
login form are part of web2py auth.form or something I haven touch that since a wild... But you have to custom the form and login form is par of controllers/default/user function... You then need to have a look at the book to how customize login form... You may also just try to set readable=True a

Re: [web2py] problem while adding a radio button in login form

2015-12-04 Thread Jonathan R
Hi Richard, I've seen people using this way to customize their registration page, they could get the radio button to be displayed, I don't really see how the login page is different and won't display it, I must miss something. What "other thing" should I do in your opinion ? thanks for your ti

Re: [web2py] problem while adding a radio button in login form

2015-12-04 Thread Richard Vézina
You want that to appear when you login?? It not going to work like that... You can check that what you have done so far works by using appadmin db tool you should see your radio button field in the form to add or update value of database... You need to do other thing if you want to modify login f

[web2py] problem while adding a radio button in login form

2015-12-04 Thread Jonathan R
Hi everyone, I'm trying to add a radio button on my login form to let the user decide which authentication method he wants to use. I added a field in the auth_user table and i try to display the corresponding radio button in my login page as follow: in bd.py [..] auth.settings.extra_field