On Aug 20, 1:42 pm, Marco <[email protected]> wrote: > I am working on an application that requires users to rate items. I'm > storing the rating as a numerical value, in a field like this: > Field('rating','integer',requires=IS_IN_SET(range(1,6)), > widget=SQLFORM.widgets.radio.widget) > As you can see, the rating is on a five-point scale. I'm currently > using the radio widget for this, but the default display I am getting > for it is five radio buttons in a column. I'd like a more attractive > and intuitive widget, something exactly like 'rate this post' provided > by google-groups. Searching google as well as the group for 'rate > widget' and 'ratings widget' gives no results. Is there something like > this already in web2py? If not, would you be so kind as to offer some > tips on how to implement it?
There is a rating_widget in T2: http://bazaar.launchpad.net/~mdipierro/t2/main/annotate/head%3A/modules/t2.py I don't think it's too coupled to the rest so could be reusable elsewhere... F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

