I finish to add my second button via jQuery jQuery( document ).ready(function() { jQuery("#submit_record__row .w2p_fw").append('{{=A("Markmin syntax",_class='btn btn-info',_href="http://www.web2py.com/init/static/markmin.html", _target="_blank")}}') }
Le dimanche 14 septembre 2014 14:18:13 UTC+2, olivier hubert a écrit : > > I have a simple FORM with a submit button and I want to add a second > button to open a new window with Markmin info. > > I declare my form like that > > form = SQLFORM(db.comm, buttons=['submit', A("Markmin > syntax",_class='btn',_href="http://www.web2py.com/init/static/markmin.html", > _target="_blank")]).process() > > But I see only the submit button and not the new one. > If I remove the submit button from the form, the Markmin syntax button is > showed and open a new window. > -- 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.