this sounds very interesting, definitely a nice addition. Although I hope 
the current SQLFORM will not be deprecated. Usually I prefer to create my 
html forms server side. I use a function to extract all form elements so I 
can create my forms more flexible, maybe this is useful for others:

def get_form_fields(form):
    formfields = dict()
    for c in form.elements('input, select, textarea'):
        name = c.attributes['_id']
        formfields['c_' + name] = c  
    for l in form.elements('label'):
        name = l.attributes['_for']
        formfields['l_' + name] = l                 
    return dict(form=form,**formfields)

in the view I can access each field (input/label) individually, e.g.

<form>
    <div>{{=l_first_name}} {{c_first_name}}</div>
    <div>{{=l_last_name}} {{c_last_name}}</div>
</form>

Alex

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to