So I need to turn off the automatic submit buttons created using the "edit_buttons" option by using the "has_submit 1" option.
But I can't see how to then manually add a submit and an extra button which is not a submit (just a link to another page).
There doesn't seem to be any examples of what exactly to add code wise to ad_form to add a custom form button (where I can use the html option to add my own classes)
Alternatively is there any way of passing extra html to the "edit_buttons".
Reason I need all this is the bootstrap classes "btn-default" and "btn-primary" are needed for two different types of buttons. but ad_form just dumps them both out as submit buttons which go through form template and get put out as "btn-primary" in blue which is not correct. I need one primary and the other just a "btn-default" button.
eg.
ad_form -name $cookiesForm \
-mode edit \
-method post \
-form {} \
-edit_buttons [list [list "[_ CookieInfoButton]" "info" ]\
[list "[_ CookieContinueButton]" "continue" ]] \
This produces two "primary" buttons on form, an "info" button and a "continue" button
According to template a submit button is main function so it gets class "btn-primary" and comes out blue in bootstrap
but the "info" button should NOT get this primary class, it should just be the default "btn-default" class
but the ad_form has them both as submit, so template sees them both as submit and adds "btn-primary" to both and get two blue buttons on form. Only want one.