Sunday, September 30, 2012

Making form label a href

In an app I've inherited, there are forms generated with {{ form.as_p
}} in the template. This generates HTML like this, for example:

<div class="generated">
<p><label for="id_group">Group</label> <select name="group"
id="id_group" tabindex="1">
<option value="" selected="selected"></option>
<option value="1">12S</option>
<option value="2">13S</option>
<option value="3">22SOI</option>
</select></p>
</div>

Is there some way to have the form label be a href?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment