On Dec 3, 1:16 pm, jhill10110 <[EMAIL PROTECTED]> wrote:
> How would I customize the format of {{ form.shipping }} on the
> base_pay_ship.html template? It currently renders this:
> <li><label for=""><input type="radio" id="" value="" name="shipping" /
>
> ><br>TEXT</label></li>
>
> I want it to render this:
> <li><label for="">TEXT</label><input type="radio" id="" value=""
> name="shipping" /></li>

I figured it out, it is just the way django's form widgets work. I
changed the following in django/forms/widgets.py:

456c456
<         return mark_safe(u'<label%s>%s %s</label>' % (label_for,
self.tag(), choice_label))
---
>         return mark_safe(u'<label%s>%s</label>%s' % (label_for, choice_label, 
> self.tag()))

What do you guys think, should this be changed in django? Here is a
reference of <label>
http://www.w3schools.com/tags/tag_label.asp

I do not think the <input> should be inside the <label>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" 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/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to