Jorge Godoy wrote: > > 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.
that's cool, I didn't know you could do that! > > The other thing I was thinking was a way to specify a cancel url, and > > add a link next to the submit button to cancel. > > Maybe with another widget as a button? You can specify some JavaScript to it > so that it behaves like you want... Might want a link rather than a button, do *not* want to rely on Javascript ;-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
