On Sat, 17 Mar 2007 17:02:43 -0400, Andreas Ahlenstorf  
<[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I'm playing around with newforms and I like to give the labels of my
> required fields a special styling using CSS. For that I need a class
> attribute in every label. But until now I wasn't able to figure out
> how to do it.
>
> Setting a field as required doesn't give me a 'required' class or
> something like that when using the built-in functions for form
> rendering (like as_p()). Passing an additional attribute to the
> widget works only with the field itself. So, what does I need to do
> get a custom class on all labels of my required fields?
>
> - A.
>

Ticket #3512 addresses this issue. I'd suggest trying the latest patch  
just uploaded the other day.

http://code.djangoproject.com/ticket/3512


-- 
Waylan Limberg
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to