mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Fix incorrect label tag
The value of the for attribute must match the id of the input tag
This commit is contained in:
@@ -404,7 +404,7 @@ class DomainNameField(CharField):
|
||||
class CustomRadioInput(RadioInput):
|
||||
def __unicode__(self):
|
||||
if 'id' in self.attrs:
|
||||
label_for = ' for="%s_%s"' % (self.attrs['id'], self.index)
|
||||
label_for = ' for="%s"' % self.attrs['id']
|
||||
else:
|
||||
label_for = ''
|
||||
choice_label = conditional_escape(force_unicode(self.choice_label))
|
||||
|
||||
Reference in New Issue
Block a user