CurveGradesDialog.handlebars 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <form action="{{action}}" id="curve_grade_dialog" style="display: none;" title="{{#t "curve_grade_for_assignment"}}Curve Grade for {{assignment.name}}{{/t}}">
  2. <input type="hidden" name="_method" value="POST"/>
  3. <input type="hidden" name="assignment_id" class="assignment_id" value="{{assignment.id}}" />
  4. <p id="curved_grades_description">
  5. {{#t "curve_average"}}
  6. Enter an average grade for the curve for <b>{{assignment.name}}</b>. The chart shows a best attempt at curving the grades based on current student scores.
  7. {{/t}}
  8. </p>
  9. <div style="min-height: 100px;">
  10. <table cellpadding="0" cellspacing="0">
  11. <tr id="results_list"></tr>
  12. <tr id="results_values"></tr>
  13. </table>
  14. </div>
  15. <p style="text-align: center;">
  16. {{#t "average_score"}}Average Score{{/t}}
  17. <input type="text" min="0" name="middle_score" id="middle_score"
  18. style="width: 45px;" value="{{middleScore}}"
  19. aria-labelledby="curved_grades_points_possible"
  20. aria-describedby="curved_grades_description" />
  21. <label for="middle_score" id="curved_grades_points_possible">
  22. {{#if showOutOf}}
  23. {{#t}}
  24. out of {{formattedOutOf}}
  25. {{/t}}
  26. {{/if}}
  27. </label>
  28. </p>
  29. <p>
  30. {{checkbox "assign_blanks"}}
  31. <label for="assign_blanks">{{#t "labels.assign_blanks"}}Assign zeroes to unsubmitted students{{/t}}</label>
  32. </p>
  33. <div class="alert alert-danger">
  34. <p>
  35. {{#t "this_is_permanent"}}
  36. Grade curving cannot be undone. Pre-curved grade histories will be available, but the curving action is irreversible.
  37. {{/t}}
  38. </p>
  39. </div>
  40. <button data-text-while-loading="{{#t "buttons.curving_grades"}}Curving Grades...{{/t}}" type="submit" class="btn btn-primary">
  41. {{#t "buttons.curve_grades"}}Curve Grades{{/t}}
  42. </button>
  43. </form>