From d8b33aea55fb1b9450ad310894516d3315a64722 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 23 Mar 2011 23:24:20 +0000 Subject: [PATCH] #OSQA-388, changing a bit the UI of the award points for an answer tool, adding text field for the input and a bit more text information about the purpose of the tool. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@879 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/models/tag.py | 2 ++ .../default/templates/node/award_points.html | 25 ++++++++++++++----- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/forum/models/tag.py b/forum/models/tag.py index 93d235b..dd628c8 100644 --- a/forum/models/tag.py +++ b/forum/models/tag.py @@ -6,6 +6,8 @@ from django.utils.translation import ugettext as _ from forum import modules class ActiveTagManager(models.Manager): + use_for_related_fields = True + def get_query_set(self): return super(ActiveTagManager, self).get_query_set().exclude(used_count__lt=1) diff --git a/forum/skins/default/templates/node/award_points.html b/forum/skins/default/templates/node/award_points.html index c7b7fcb..a031fa0 100644 --- a/forum/skins/default/templates/node/award_points.html +++ b/forum/skins/default/templates/node/award_points.html @@ -2,25 +2,38 @@

{% blocktrans %} -Award {{ awarded_user }} with reputation points. +If you like this answer you can award {{ awarded_user }} with reputation points. {% endblocktrans %}

- Points: - 1 +{% blocktrans %} +Use the slider below or the input field to choose the amount of points you would like to give. +{% endblocktrans %}

-
+ + + + + +
{% trans "Points:" %}
- +
\ No newline at end of file -- 2.39.5