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
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,
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
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:
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
5 matches
Mail list logo