[web2py] Re: manipulating form elements

2010-09-01 Thread annet
Hi David, I customized my forms like this: > {{form.element('input',_name='name')['_size']=50}} However, after some time I found myself repeating this to often, so I moved the customization to a .css file: #no_table_name {width: 72px;} or #table_field {width:72px;} Kind regards, Annet.

[web2py] Re: manipulating form elements

2010-09-01 Thread david.waldrop
You think right :-) Thanks. On Sep 1, 5:26 pm, mdipierro wrote: > I think > > {{form.element('input',_name='name')['_size']=50}} > > On Sep 1, 4:14 pm, "david.waldrop" wrote: > > > > > I am trying to customize a form by explicitly specifying the length of > > the namefield : > > > {{form.elemen

[web2py] Re: manipulating form elements

2010-09-01 Thread mdipierro
I think {{form.element('input',_name='name')['_size']=50}} On Sep 1, 4:14 pm, "david.waldrop" wrote: > I am trying to customize a form by explicitly specifying the length of > the namefield : > > {{form.element('input',name='name')['_size']=50}} > {{=form.custom.begin}} > >         {{=form.cust