]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/forms.py
Closing OSQA 35. Give admins and moderators an easy way to award karma points.
[osqa.git] / forum / forms.py
index 509c1255dd5578aebce63017f75789f8756d97fe..b54d65b1d133b03b70f5db84dc0ae06ede96b8b7 100644 (file)
@@ -251,3 +251,7 @@ class SubscriptionSettingsForm(forms.Form):
     notify_comments = forms.BooleanField(required=False, initial=False)
     notify_accepted = forms.BooleanField(required=False, initial=False)
 
+
+class AwardPointsForm(forms.Form):
+    points = forms.IntegerField(min_value=1, initial=50, label=_('Points to award'))
+    message = forms.CharField(widget=forms.Textarea(), label=_('Message'), required=False)