I would like to design custom forms outside the bounds of creating custom 
web2py formstyles, using the template language instead.

Ive been able to decouple the fields and form attributes but i dont want to 
lose the security.
So the answer is, how do i include the hidden div with the token?

Example of what im trying:
login.html that receives a variable form=auth()

{{attrs = form.__dict__['attributes']
fields = form.fields}}

<form class="{{=attrs['class']}}" id="{{=attrs['id']}}" 
method="{{=attrs['method']}}">
    <div class="panel-body">
        <div class="login-avatar"> 
            <img src="img/avatars/login.png" width="150" height="112" 
alt="avatar">
        </div>

{{for fld in fields:}}
Render Fields somehow
{{pass}}
{{=get_token_here()}}
    </div>
</form>

So the idea is to implement your own design stripping any kind of css 
generation from any FORM object but including the hidden div with the token 
and extra information. If this is posible it can replace the whole 
formstyle system in an easy way without losing security measures. 

Thank you very much.

-- 
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.

Reply via email to