form is the form
form[0] is the table
form[0][1] is the first row etc.

I think something like this does what you aksed:

n_fields = len(form[0].components)
bottom_half = form[0].components[n_fields/2:0]
form[0].components[n_fields/2:]
form[0]=TABLE(TR(TD(form[0]),TD(TABLE(bottom_half))))

Try I am not sure.


On Nov 16, 5:52 am, Marco Prosperi <marcoprosperi...@gmail.com> wrote:
> hi all, I would like to use the crud forms (for their simplicity) for
> a table with a lot of fields. The problem is that the standard layout
> positions fields one above the other leaving the right half of my
> screen empty (a waste of room) and the submit button very far from the
> top of the page for the user.
>
> It would be very tedious and time consuming to write by hand the form
> to make a better usage of the available space, so I'm asking if there
> is some way to modify just one part of the crud form or at least to
> tell to web2py to layout the crud form fields in two columns
>
> thanks in advance for hints,
>
> Marco
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to