#4860: Labels missing for tags in newforms widgets
----------------------------------------+-----------------------------------
   Reporter:  russellm                  |                Owner:  sandro         
     Status:  reopened                  |            Component:  django.newforms
    Version:  SVN                       |           Resolution:                 
   Keywords:  newforms html validation  |                Stage:  Accepted       
  Has_patch:  0                         |           Needs_docs:  0              
Needs_tests:  1                         |   Needs_better_patch:  0              
----------------------------------------+-----------------------------------
Changes (by sandro):

  * keywords:  => newforms html validation
  * status:  closed => reopened
  * resolution:  worksforme =>

Comment:

 Just ran into some test data to validate the issue:
 {{{
 CHOICES=[(1L, u'Marshall'), (2L, u'Miami'), (3L, u'East Carolina'), (4L,
 u'Virginia Tech'), (5L, u'Connecticut')]

 class TeamSelectForm(forms.Form):
     teams = forms.MultipleChoiceField(choices=CHOICES,
 widget=forms.CheckboxSelectMultiple)


 <p><label for="id_teams_0">Teams:</label> <ul>
 <li><label><input type="checkbox" name="teams" value="1" id="id_teams_0"
 /> Marshall</label></li>
 <li><label><input type="checkbox" name="teams" value="2" id="id_teams_1"
 /> Miami</label></li>
 <li><label><input type="checkbox" name="teams" value="3" id="id_teams_2"
 /> East Carolina</label></li>
 ...
 </ul></p>
 }}}
 Each list item should instead look like:
 {{{
 <li><input type="checkbox" name="teams" value="1" id="id_teams_0" /><label
 for="id_teams_0"> Marshall</label></li>
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4860#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to