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)
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
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(_
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
4 matches
Mail list logo