I found a way! :-D
{{=grid.elements('.form_header')[0]}}
On Friday, July 17, 2015 at 12:36:09 PM UTC+2, Massimiliano wrote:
>
> Hi,
>
> I'm trying to customize the grid in edit mode.
>
> Something like:
>
> {{if 'grid' in globals():}}
> {{if grid.update_form:}}
> {{form = grid.update_form}}
> {{=form.custom.begin}}
> ....
> {{=form.custom.submit}}
> {{=form.custom.end}}
> {{else:}}
> {{=grid}}
> {{pass}}
> {{pass}}
>
> The only problem that I found is that buttons (back, view etc) are gone.
>
> Is there a way to recreate or recover grid buttons?
>
> thank you
>
> --
> Massimiliano
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.