> controller.py
> def index():
> auth.settings.remember_me_form=True
> auth.settings.long_expiration = 3600*24*30
> form = auth()
> return dict(form=form)
>
> view.html
> {{=form.custom.begin}}
> {{=form.custom.widget.email}}
> {{=form.custom.widget.password}}
> {{=form.custom.widget.remember_me}}
> {{=form.custom.widget.submit}}
> {{=form.custom.end}}
>
I cannot reproduce the problem -- using the exact code above, I do see a
checkbox added to the form. However, you have not included any of the field
labels, so the checkbox has no label (the label is in
form.custom.label.remember_me).
Also, there is no form.custom.widget.submit, so you probably see the word
"None" right after the checkbox instead of seeing the login button.
Instead, it should just be form.custom.submit.
Anthony
--
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/d/optout.