On Dec 14, 6:00 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> Take, for example:  http://jeffhowden.com/code/css/forms/
Ah yes, that was one of the many pages I saw during my research.
But even that is too static for me. I want to change the layout on the
fly, even live, and to remember it.
Can you see where I am going with this?.

> With a form design as such, you can turn it easily into
>
> http://www.jankoatwarpspeed.com/post/2009/09/28/webform-wizard-jquery...
That may come in handy but it is not what I am after.

> A custom patch seems to be the most appropriate. Create a list, that
> represents the form, and use a function to chop through it.
>
> I am playing around with the following
>
> http://pastebin.com/m764d7a39
>
> Basically, it takes a list of lists, each sublist is a fieldset where
> if a element is a list it is the fieldset title, and if it is a tuple,
> it goes into the notes div.
>
> It formats the form and looks "almost" exactly like the one on the
> first link (with the appropriate css. Then using the formtowizard, it
> looks nice :)
>
> I am actually happier with this, since I believe allows for the most
> customization as far as form content goes.
>
> SQLFORM does need to be refactored into more MVC format.... I am
> thinking of SQLFORM only making the data ready, and performing the
> validation, and have a separate class that creates and renders the
> form elements.
SQLFORM could be made more plugable, with the current table output
being the default.
I also ended up using a separate class to generate the output which
keeps the changes to controllers and views to a bare minimum: one
line.
What I need now is to play with the CSS layout of the elements and see
what works and what doesn't.

Denes

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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