Re: [web2py] form.add_button() looks different than the Submit button displayed with SQLFORM

2015-06-12 Thread Selman Kocael
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

Re: [web2py] form.add_button() looks different than the Submit button displayed with SQLFORM

2015-06-12 Thread Anthony
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

[web2py] form.add_button() looks different than the Submit button displayed with SQLFORM

2015-06-11 Thread Msak
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