grading_box.handlebars 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {{#if assignment_grading_type_is_points}}
  2. <input name="{{inputName}}"
  3. value="{{ grade }}"
  4. class="grading_value grading_box"
  5. id="student_grading_{{assignment.id}}"
  6. aria-labelledby="default_grade_points"
  7. aria-describedby="default_grade_description"
  8. {{ disabledIf isInPastGradingPeriodAndNotAdmin }}
  9. />
  10. {{/if}}
  11. {{#if assignment_grading_type_is_percent}}
  12. <span name="{{inputName}}" class="grading_box" id="student_grading_{{assignment.id}}">
  13. <input name="{{inputName}}"
  14. type="text"
  15. name="grade"
  16. value="{{ grade }}"
  17. class="grading_value"
  18. aria-labelledby="default_grade_points"
  19. aria-describedby="default_grade_description"
  20. {{ disabledIf isInPastGradingPeriodAndNotAdmin }}
  21. />
  22. </span>
  23. {{/if}}
  24. {{#if assignment_grading_type_is_letter_grade}}
  25. <input name="{{inputName}}"
  26. type="text"
  27. value="{{ grade }}"
  28. class="grading_value grading_box score_value"
  29. id="student_grading_{{assignment.id}}"
  30. aria-labelledby="default_grade_points"
  31. aria-describedby="default_grade_description"
  32. {{ disabledIf isInPastGradingPeriodAndNotAdmin }}
  33. />
  34. {{/if}}
  35. {{#if assignment_grading_type_is_gpa_scale}}
  36. <input name="{{inputName}}"
  37. type="text"
  38. value="{{ grade }}"
  39. class="grading_value grading_box score_value"
  40. id="student_grading_{{assignment.id}}"
  41. aria-labelledby="default_grade_points"
  42. aria-describedby="default_grade_description"
  43. {{ disabledIf isInPastGradingPeriodAndNotAdmin }}
  44. />
  45. {{/if}}
  46. {{#if assignment_grading_type_is_pass_fail}}
  47. <select name="{{inputName}}"
  48. class="grading_value grading_box pass_fail"
  49. id="student_grading_{{assignment.id}}"
  50. {{ disabledIf isInPastGradingPeriodAndNotAdmin }}
  51. >
  52. <option value="">---</option>
  53. <option value="complete" {{selectedIf grade "complete"}}>{{#t "#gradebooks.grades.complete"}}Complete{{/t}}</option>
  54. <option value="incomplete" {{selectedIf grade "incomplete"}}>{{#t "#gradebooks.grades.incomplete"}}Incomplete{{/t}}</option>
  55. {{#if shouldShowExcusedOption}}
  56. <option value="EX" {{#if excused}}selected{{/if}}>{{#t}}Excused{{/t}}</option>
  57. {{/if}}
  58. </select>
  59. {{/if}}
  60. {{#if showPointsPossible}}
  61. <label>
  62. <span id="default_grade_points" style="font-size: 0.9em;" >
  63. {{#if assignment_grading_type_is_percent}}
  64. {{#t}}
  65. %
  66. {{/t}}
  67. {{else}}
  68. {{#t}}
  69. out of {{n assignment.points_possible}}
  70. {{/t}}
  71. {{/if}}
  72. </span>
  73. </label>
  74. {{/if}}