Missing useful ID attribute in <p>, <li> and <tr> of auto generated form from as_p, as_ul and as_table.
|Reported by:||Owned by:||Adrian Holovaty|
|Severity:||Keywords:||as_p, as_ul, as_table, id|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Design a form built with Form.as_p(), Form.as_ul() or Form.as_table() is dificult becouse there is no ID in <li>,<p> or <tr> tags.
For example: The <input> field "name" need to be larger than the others. I can do that with <input> tag becouse it have an id="id_name", but if I need to do some changes on the entire block containing the "name" field, it´s impossible.
Current form generation:
<li><label for="id_name">Name:</label><input id="id_name"/></li>
<li id="name"><label for="id_name">Name:</label><input id="id_name"/></li>
This ID attribute is very useful when doing form design, please considere it.
I change the forms.py file from newforms package to act as proposed, and it´s included in this ticket as a patch.