Sunday, September 30, 2012

Re: Making form label a href

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

you'll have to change the forms templates to something like

{% for field in form %}
<p>
<label for="{{ field.id_for_label }}"><a href="/your/path/">{{
field.label }}</a></label>
{{ field }}
</p>
{% endfor %}


--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.

--
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