Yes, .add_button() does take a _class argument, which you will need to 
specify to match the class being used for your formstyle.

Anthony

On Friday, June 12, 2015 at 2:03:15 AM UTC-4, xmarx wrote:
>
> 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