Re: Form option, that would render asterisks for required field

2009-08-11 Thread dc
> If you look at the rendered HTML for the > label on a required field, it already has a 'required' class That's true only for admin forms because they use special AdminField class with custom label_tag() method. Normal Django forms don't have this feature. There is a ticket for this http://code

Re: Form option, that would render asterisks for required field

2009-08-11 Thread Filip Gruszczyński
> This is what CSS is for. If you look at the rendered HTML for the > label on a required field, it already has a 'required' class - for > example: > > Title: > > By default, the admin makes required fields bold; if you want to apply > a trailing asterisk, you should be able to use the 'content' C

Re: Form option, that would render asterisks for required field

2009-08-10 Thread Russell Keith-Magee
2009/8/10 Filip Gruszczyński : > > Hi everyone! > > Putting asterisks after a required field is a common practice. To > achieve I use right now a filter that is invoked after every form > field in a template. This isn't very convenient, but I haven't found > any better solution yet. > > I wonder i

Form option, that would render asterisks for required field

2009-08-10 Thread Filip Gruszczyński
Hi everyone! Putting asterisks after a required field is a common practice. To achieve I use right now a filter that is invoked after every form field in a template. This isn't very convenient, but I haven't found any better solution yet. I wonder if something like this couldn't be added to Djan