web2py assigns the class "btn" to the form input[type="submit"] 
(seehttps://github.com/web2py/web2py/blob/master/applications/welcome/static/js/web2py.js#L79)
 
so the button style is controlled by bootstrap css that adds a 
background-image. 
A simple workaround could be:
 
def x():
    return dict(i=FORM(INPUT(_type="submit", _style=
"background-color:yellow;background-image:none;")),
                j=INPUT(_type="submit", _style="background-color:yellow"))


Il giorno domenica 19 gennaio 2014 11:01:27 UTC+1, mweissen ha scritto:
>
> I wanted to change the color of a button.
> If there is a button without a form it works as excepted, but a button 
> inside a FORM does not change:
>
> def x():
>     return dict(i=FORM(INPUT(_type="submit", 
> _style="background-color:yellow")),
>                 j=INPUT(_type="submit", _style="background-color:yellow"))
>
> The first button keeps its standard color, the second one is yellow.
>
> It's in the css-files, but I could not find it.
> Any hints?
> Regards, Martin
>
>
>  

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to