Leandro Lucarella wrote: > Karl Guertin, el mi?rcoles 28 de diciembre a las 00:09 me escribiste: > > I'm also annoyed that the labels all have 'for="widget"' rather than > > the correct widget name. > > This one is clearly a bug, did you opened a ticket? >
Yes, labels should have their for attribute pointing to the right widget id. Before doing this we should agree on some standard naming conventions that every widget should use for its class and id attributes (others?). For example a text field: TextField(name="Age") should give: <input type="text" name="age" id="????" class="???"> where id could be: id="tg_age_id" (tg namespaced) id="age_id" and class: class="tg_text_field" class="text_field" this is needed also for easier css customization. This should happen also for the FormTable, FieldSet,CheckableList... widgets. Suggestions? Ciao Michele

