Is the descript in web2py online book below
*This results in a standard table layout. If you wish to use a different
layout, you can break the form into components*
*
*
*1. {{=form.custom.begin}}*
*2. Image name: <div>{{=form.custom.widget.name}}</div>*
*3. Image file: <div>{{=form.custom.widget.file}}</div>*
*4. Click here to upload: {{=form.custom.submit}}*
*5. {{=form.custom.end}}*
*
*
*where form.custom.widget[fieldname] gets serialized into the proper widget
for the field. If the form is submitted and it contains errors, they are
appended below the widgets, as usual.*
fit your needs???
On Sun, Apr 1, 2012 at 11:53 PM, bussiere adrien <[email protected]> wrote:
> How to separate element from a form in a view ?
> {{= form }}
> make the whole form.
>
> But i i want to use it one by one for css ?
> is there a way to do it like :
> {{= form.Email }}
>
> Regards
> Bussiere
>
> here is my form :
> form2 = FORM(
> TABLE(
> TR(
> TD(
>
> LABEL('Email : ')
> ),
> TD(
> INPUT(_name='Email')
> )
> ),
> TR(
> TD(
>
> LABEL('Age : ')
> ),
> TD(
> INPUT(_name='Age')
> )
> ),
> TR(
> TD(
> LABEL('Password : ')
> ),
> TD(
> INPUT(_name='password1',_type='password')
> )
> ),
>
> TR(
> TD(
> LABEL('Password verification : ')
> ),
> TD(
> INPUT(_name='password2',_type='password')
> )
> ),
> TR(INPUT(_type='submit'))
> )
> )
>
--
===========================
Regards
Ronghui Yu