[web2py] Re: trying to add a submit button to SQLFORM but it does nothing

2013-12-23 Thread Tim Richardson
This works: grid_form = FORM(INPUT(_type="submit",_name="testsubmit",_value="testsubmit"),grid,INPUT(_type="submit",_name="testsubmit1",_value="testsubmit1",_class='btn'), ) That is, adding the submit button before the grid works (the second button still doesn't work)

[web2py] Re: trying to add a submit button to SQLFORM but it does nothing

2013-12-27 Thread Tim Richardson
There is nothing wrong with the HTML generated by web2py. Browsers don't like it though, too many forms perhaps. Or nested forms. On Tuesday, 24 December 2013 09:39:36 UTC+11, Tim Richardson wrote: > > def test_form(): > grid = SQLFORM.grid(db.person, > links=[dict(hea

[web2py] Re: trying to add a submit button to SQLFORM but it does nothing

2013-12-27 Thread Massimo Di Pierro
You cannot have a grid in a form because a grid contains a form. Nested forms are not allowed in html. Massimo On Monday, 23 December 2013 21:16:52 UTC-6, Tim Richardson wrote: > > This works: > > > grid_form = > FORM(INPUT(_type="submit",_name="testsubmit",_value="testsubmit"),grid,INPUT(_

[web2py] Re: trying to add a submit button to SQLFORM but it does nothing

2013-12-28 Thread Tim Richardson
For reference, in case you want to add some basic inline editing to SQLFORM.grid. I wanted to add a radio button group so that for each row the user can select a number of different actions, as opposed to selectable which lets the user flag the row on or off. 1) any INPUT fields in a grid (adde