"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:

> Another question has come up for me with regards to using form widgets.
> I have seen that there are two basic layout types, table and list. How
> does one do a more complex form layout using a widget? The real
> application I need to build once I get more comfortable with TG has
> some fairly complex forms that need to be laid out as compactly as
> possible. A mockup of one of the pages is available here:

You have to write your own layout.  The code in TableForm and ListForm can
help you getting started.

> http://www.slane.k12.or.us/cmap_cedit.html . The main entry stuff on
> the left would be simple enough, but getting the other entry box on the
> right escapes me. Can one define custom layouts in one form like this
> with widgets?

Yes, you can.  It's in the class variable "template".  Take a look at the
source -- it's not hard, it's inside turbogears/widgets/ and there you have
forms.py and other files -- and you'll get an idea.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to