I didn't test, but you can try this.

form.add_button('Reset',URL('visitorInfoForm'),_class="btn btn-primary")

2015-06-12 2:55 GMT+03:00 Msak <meenoo3...@gmail.com>:

> I am using SQLFORM to generate and display form from the database table. I
> am adding a "Reset" button next to default "Submit" button using
>
> form.add_button('Reset',URL('visitorInfoForm'))
>
> The issue is "Submit" button has a different style (background-color: blue
> and color: white) than the "Reset" button(background-color: grey and color:
> black).
> How do I change their styles such that they both look same ?
> Any help would be great.
>
> Thanks
>
> --
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Selman Kocael
İsabet Yayınları

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to