[F xhml] use a class to avoid duplicated ids when editing several entities at once
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Jul 2009 11:10:11 +0200
changeset 2561 c6f0634e2d77
parent 2560 fee7fb9832d8
child 2563 415179b608c5
[F xhml] use a class to avoid duplicated ids when editing several entities at once
web/views/formrenderers.py
--- a/web/views/formrenderers.py	Wed Jul 29 10:44:55 2009 +0200
+++ b/web/views/formrenderers.py	Wed Jul 29 11:10:11 2009 +0200
@@ -199,7 +199,7 @@
                 w(u'<legend>%s</legend>' % self.req._(fieldset))
             w(u'<table class="%s">' % self.table_class)
             for field in fields:
-                w(u'<tr id="%s_%s_row">' % (field.name, field.role))
+                w(u'<tr class="%s_%s_row">' % (field.name, field.role))
                 if self.display_label:
                     w(u'<th class="labelCol">%s</th>' % self.render_label(form, field))
                 error = form.form_field_error(field)