AssignmentSettings.handlebars 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <div class="form-dialog-content ag-weights-content">
  2. {{#unless canChangeWeights}}
  3. <span class="ag-weights-message alert">{{#t}}Assignment group weights can't be edited because there are
  4. assignments in one of the groups whose due dates are closed.{{/t}}</span>
  5. {{/unless}}
  6. <label class="checkbox" id="weight-groups" for="apply_assignment_group_weights">
  7. {{#if canChangeWeights}}
  8. {{checkbox "apply_assignment_group_weights"}}
  9. {{else}}
  10. {{checkbox "apply_assignment_group_weights"
  11. class="disabled"
  12. readonly=true}}
  13. {{/if}}
  14. {{#t}}Weight final grade based on assignment groups{{/t}}
  15. </label>
  16. <div class="form-horizontal ag-weights-form">
  17. <div id="ag_weights_wrapper" class="ag-weights-table">
  18. <table id="assignment_groups_weights">
  19. <tbody>
  20. </tbody>
  21. <tfoot>
  22. <tr>
  23. <th scope="row">Total</th>
  24. <td id="percent_total" class="right-align"></td>
  25. </tr>
  26. </tfoot>
  27. </table>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="form-controls">
  32. <button
  33. id="cancel-assignment-settings"
  34. class="btn dialog_closer {{#unless canChangeWeights}}disabled{{/unless}}"
  35. type="button"
  36. {{#unless canChangeWeights}}aria-disabled=true{{/unless}}
  37. >{{#t}}Cancel{{/t}}</button>
  38. <button
  39. id="update-assignment-settings"
  40. class="btn btn-primary {{#unless canChangeWeights}}disabled{{/unless}}"
  41. data-text-while-loading='{{#t}}Saving...{{/t}}'
  42. type="submit"
  43. {{#unless canChangeWeights}}aria-disabled=true{{/unless}}
  44. >{{#t}}Save{{/t}}</button>
  45. </div>