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
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
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
3 matches
Mail list logo