Jorge Godoy wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> writes:
>
> > I would also like to provide a way of marking a field as required, is
> > it possible to check the validator and add a css class?
>
> You can use "css_classes = [list_of_strings_with_classes]" and mark them the
> way you want (this is in your widget declaration.
>
> For example I use "css_classes = ['required']" here.

this isn't needed with svn, if a field is required the css class
"requiredfield" (or "fieldquired" ? I dont' rember) is automatically
added. :-)

Check the source of the page you get... ;-)

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to