i will dig it regards.

Bussiere

Le dimanche 1 avril 2012 18:33:48 UTC+2, Anthony a écrit :
>
> See http://web2py.com/books/default/chapter/29/7#Custom-forms  and 
> http://web2py.com/books/default/chapter/29/7#SQLFORM-in-HTML . Forms are 
> also web2py HTML helper objects, so if you just need to make little tweaks, 
> you can use the server-side DOM to manipulate the form object before 
> serializing in the view: 
> http://web2py.com/books/default/chapter/29/5#Server-side-DOM-and-parsing 
> , 
> http://www.web2pyslices.com/slice/show/1370/modify-form-elements-and-attributes
>  .
>
> Anthony
>
> On Sunday, April 1, 2012 11:53:49 AM UTC-4, bussiere adrien 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'))
>>     )
>> )
>>
>

Reply via email to