5 If you like this answer you can award {{ awarded_user }} with reputation points.
 
  11 Use the slider below or the input field to choose the amount of points you would like to give.
 
  17         <td width="50%">{% trans "Points:" %}</td>
 
  18         <td width="50%"><input type="text" name="points" id="points_input" value="1" style="border: 1px solid #ccc; padding: 1px 2px;" /></td>
 
  22 <div class="award_points_slider"></div>
 
  25 $('.award_points_slider').slider({
 
  26     min: 1, max: {{ user.reputation }},
 
  27     slide: function(evt, ui) {
 
  28         $('#points_input').val(ui.value)
 
  32 $('#points_input').bind('change keydown', function() {
 
  33     if ($(this).val() > {{ user.reputation }}) {
 
  34         $(this).attr('value', {{ user.reputation }})
 
  36     $('.award_points_slider').slider('option', 'value', $(this).val())