Re: [web2py] Re: Using bootstrap for forms.

2012-01-10 Thread Anthony
Assuming you don't need the fieldset and legend (which don't look useful in this example), I would think the Bootstrap styling would still work fine with the web2py form. If you really need to restructure, though, then creating a custom form should be fairly easy: http://web2py.com/books/defaul

Re: [web2py] Re: Using bootstrap for forms.

2012-01-10 Thread David
Yes sorry for the confusion Here is an example from twitter: Example form legend X-Large input Here is the web2py output. Having trouble changing using web2py elements(). First Name: Message On 1/10/12 4:47 PM, Anthony wrote: On Tuesday, January 10, 2012 4:14:02 PM UTC-5,

Re: [web2py] Re: Using bootstrap for forms.

2012-01-10 Thread Anthony
On Tuesday, January 10, 2012 4:14:02 PM UTC-5, David J wrote: > > Thanks I think the semantics for forms is quite different from web2py. > > I think it may be easier to use custom forms vs trying to do it this way. > Are you talking about Twitter Bootstrap? I thought that just provided CSS styli

Re: [web2py] Re: Using bootstrap for forms.

2012-01-10 Thread David
Thanks I think the semantics for forms is quite different from web2py. I think it may be easier to use custom forms vs trying to do it this way. On 1/10/12 3:54 PM, Anthony wrote: What classes do you need to add? Once the form has been created, you can add classes to individual elements via:

[web2py] Re: Using bootstrap for forms.

2012-01-10 Thread Anthony
What classes do you need to add? Once the form has been created, you can add classes to individual elements via: form.element('[selector goes here]')['_class'] = 'new class' See http://web2py.com/books/default/chapter/29/5#elements. If you need to add a class to an input widget specifically, yo