Great, thanks for this Anthony!
On Thursday, November 21, 2013 2:31:18 PM UTC-6, Anthony wrote:
>
> Because that field is not part of the database table, it isn't part of the
> SQLFORM and therefore not in form.custom.widget. Instead, it is added to
> the form DOM after the form has been created. If you want just the checkbox
> widget, you can do:
>
> {{=form.element('input#auth_user_remember')}}
>
> Anthony
>
> On Thursday, November 21, 2013 2:50:14 PM UTC-5, Michael Gheith wrote:
>>
>> My controller is:
>>
>> def index():
>> return dict(form=auth.login())
>>
>>
>> I'm trying to customize the web2py login form in the view like the
>> following:
>>
>> {{=form.custom.begin}}
>> E-mail: <div>{{=form.custom.widget.email}}</div>
>> Password: <div>{{=form.custom.widget.password}}</div>
>> Login: {{=form.custom.submit}}
>> {{=form.custom.end}}
>>
>> I would like to add the checkbox to this for the "Remember me (for 30
>> days)" but I can't figure it out for the life of me. Any help would be
>> greatly appreciated. I did a lot of research on this already and tried
>> lots of things to make it happen without success. Please help :)
>>
>>
>>
--
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.