Doing this means you can target a specific row and allows you to be more creative with css as you get more control over the form.
where form_name and field are replaced by the actual value of each I might suggest id="form_name_field_row" or id="form_name_field_item" and where 'row' or 'item' is literal. It might seem superfluous but it would help no end in customisation of a dynamically drawn form. Max Ischenko wrote: > Michele, > > I do not think this is a good idea and would vote to remove these. > > In CSS, any tr/td could be easily identified with ".tableform tr" or > "#yourid tr" so these extra ids are redundant and confusing. > > Michele Cella wrote: > > > That sounds like a good idea. What would also be good, from a styling > > > point of view, would be an id on each <tr /> or <li />. It would allow > > > you to do some nice advanced css to change the layout of the form, > > > including hiding and revealing stuff. > > > > > > > I added ids to <tr> and <li> in r1095, they are like: > > > > form_name_field > > > > should we use? > > > > form_name_tr > > form_name_li > > > > something other and better? I'm not so sure about form_name_field. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
