On 2/26/06, Keith R. Fieldhouse <[EMAIL PROTECTED]> wrote:
I'm trying to figure out the "right" way to go about creating custom
form layouts.
I have a form that will show up in a couple of different places in my
application. As it happens, the layouts provideed by TableForm or
ListForm aren't really what I want (developer's suffer from Bike Shed
momements too :-)).
It seems like the correct thing to do is to create a new FormWidget with
a custom template. Within that template though, what is a the right way
to get a hand on each of the fields in my form? The existing forms
widgets simple iterate over "fields" and drop them where the next field
goes. If I want to put *this* field *there*, and *that* field *over
there* how do I get it? It seems like I might be able to use the
field_for() method of Form but I don't know how to get at it within my
form's template?
Or, should I just dispense with the Form widget all together and simply
create .KID files with my layouts.
This is all with the current .9
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

