Hi,

I am using radios and (checkboxes) in a form, but errors (when submit)
are not displayed correctly.
The error is put in the middle of the radio field. Take a look here :
http://povauboin.free.fr/0aa08aed-8a1e-47a5-ad98-5a8fbecad4aa/radio.png

Firebug gives me :

<input type="radio" value="Mineur" name="criticity">
<div id="criticity__error" class="error" style="display: block;">
value not allowed
</div>
Mineur

At first glance it seems that 'Mineur' and <div>...</div> are
switched.
Any ideas to change that ?

Besides, I noticed in sqlhtml.py that radio are rendered in a html
table with the following :

if opts:
   opts[-1][0][0]['hideerror'] = False
   return TABLE(*opts, **attr)

Meaning only the first radio of the last row will display an error
(with a call to INPUT.xml() ).
Wouln't it be better if TABLE had an xml() function to display the
error ? (instead of nesting it into the last input)

PO.

Reply via email to