web/views/formrenderers.py
changeset 2550 4e009026a0f0
parent 2521 782360fa6cc0
child 2561 c6f0634e2d77
equal deleted inserted replaced
2549:3d8c62e5e2d4 2550:4e009026a0f0
   197             w(u'<fieldset class="%s">' % (fieldset or u'default'))
   197             w(u'<fieldset class="%s">' % (fieldset or u'default'))
   198             if fieldset:
   198             if fieldset:
   199                 w(u'<legend>%s</legend>' % self.req._(fieldset))
   199                 w(u'<legend>%s</legend>' % self.req._(fieldset))
   200             w(u'<table class="%s">' % self.table_class)
   200             w(u'<table class="%s">' % self.table_class)
   201             for field in fields:
   201             for field in fields:
   202                 w(u'<tr id="%s_%s">' % (field.name, field.role))
   202                 w(u'<tr id="%s_%s_row">' % (field.name, field.role))
   203                 if self.display_label:
   203                 if self.display_label:
   204                     w(u'<th class="labelCol">%s</th>' % self.render_label(form, field))
   204                     w(u'<th class="labelCol">%s</th>' % self.render_label(form, field))
   205                 error = form.form_field_error(field)
   205                 error = form.form_field_error(field)
   206                 if error:
   206                 if error:
   207                     w(u'<td class="error">')
   207                     w(u'<td class="error">')