Jorge Godoy wrote:
>
> But please, keep it simple so that it can be used with any design we have
> already :-)
>
> One thing that I miss is the ability to specify how many columns I want and to
> have data separated in these columns (always a pair is OK to me).
>
> So, if I have something like 10 rows, and two small columns, I could have 4
> columns and use 5 rows, making a better use of horizontal space.
>
> What makes me more "pissed off" is the fieldset layout...  it is really bad to
> use a fieldset within a form because it looses formatting.  Maybe fieldset
> should also create a table and separate label from data input field, so that
> it would look better...  (I know I could do that, but sometimes we need to
> deliver the project to earn some money... :-)  Playing with the tools is much
> more fun, but doesn't pay the bills...).
>
> For now, there's a lot of horizontal space waste...  If you have two widgets
> for, e.g., City + State, then you'll use two lines when usually one would do
> it very well (states are usually input in their abbreviated two letter
> form...).  There's no way to specify that with current layout (I dunno is some
> CSS black magic could move a row from the table to the upper line, but...).
>
>

Jorge, you're referring to very specifics needs here, what I want from
Richard is a simple (as the actual one) template that gives designer
the freedom to customize it using css, that means for example using TH
as suggested by Richard, I don't think we need a brand new template,
just tweaking it so that it's completely usable from a designer and
with css.

Regarding your problem of moving things on the same row, that's the
freedom display_field_for gives you, for example:

class CityForm(TableForm):
     fields = CityFields()
     template  = """
     <tr>
          <td>City: ${display_field_for("city")}</td>
          <td>State: ${display_field_for("state")}</td>
     </tr>
     """

that's a dump example but I think you get the point, we can't address
this on our widgets since their are ready for a generic use, but as you
can see customizing the template to fits your needs is now pretty easy
to do. ;-)

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to