SetDefaultGradeDialog.handlebars 1.2 KB

12345678910111213141516171819202122232425
  1. <form id="set_default_grade_form" action="{{url}}" method="POST" title="{{#t "dialog_title"}}Default grade for {{assignment.name}}{{/t}}">
  2. <input type="hidden" name="assignment_id" class="assignment_id" value="{{assignment.id}}"/>
  3. <div id="default_grade_description">
  4. <p>
  5. {{#if assignment_grading_type_is_percent}}
  6. {{#t}}
  7. Give all students the same <b>percent</b> grade for <i>{{assignment.name}}</i> by entering and submitting a grade value below:
  8. {{/t}}
  9. {{else}}
  10. {{#t}}
  11. Give all students the same grade for <i>{{assignment.name}}</i> by entering and submitting a grade value below:
  12. {{/t}}
  13. {{/if}}
  14. </p>
  15. </div>
  16. <div style="text-align: center;" class="grading_box_holder">
  17. {{> grading_box}}
  18. </div>
  19. <div>
  20. <input type="checkbox" name="overwrite_existing_grades" id="overwrite_existing_grades_for_{{assignment.id}}"/>
  21. <label for="overwrite_existing_grades_for_{{assignment.id}}">{{#t "overwrite"}}Overwrite already-entered grades{{/t}}</label>
  22. </div>
  23. <button type="submit" class="btn" data-text-while-loading="{{#t "set_grades_button_loading"}}Setting Grades...{{/t}}">{{#t "set_grades_button"}}Set Default Grade{{/t}}</button>
  24. </form>