Re: newforms and output of required fields

2007-03-20 Thread [EMAIL PROTECTED]
Hi Rubic, On Mar 20, 5:18 pm, "Rubic" <[EMAIL PROTECTED]> wrote: > On Mar 20, 4:27 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > I have explained the technique with example code here: > >http://code.djangoproject.com/wiki/TemplatedForm > > Very nice, Alex. You might consider adding

Re: newforms and output of required fields

2007-03-20 Thread Waylan Limberg
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 fi

Re: newforms and output of required fields

2007-03-20 Thread Rubic
On Mar 20, 4:27 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have explained the technique with example code here: > http://code.djangoproject.com/wiki/TemplatedForm Very nice, Alex. You might consider adding this code to the djangosnippets.org site. FWIW, you can replace the first 4 l

Re: newforms and output of required fields

2007-03-20 Thread [EMAIL PROTECTED]
Hi Andreas, On Mar 17, 11:02 pm, Andreas Ahlenstorf <[EMAIL PROTECTED]> wrote: > Setting a field asrequireddoesn'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

newforms and output of required fields

2007-03-17 Thread Andreas Ahlenstorf
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