outcome.handlebars 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <h2 class="screenreader-outcome-title screenreader-only" tabindex="0">
  2. {{title}}
  3. </h2>
  4. <h2 class="title" role="presentation">
  5. <i class="icon-outcomes" aria-hidden="true"></i>
  6. {{#unless isLargeRoster}}
  7. <a href='{{html_url}}'>{{title}}</a>
  8. {{else}}
  9. {{title}}
  10. {{/unless}}
  11. </h2>
  12. <div class="description">
  13. {{{description}}}
  14. </div>
  15. <table class="criterion">
  16. <tr>
  17. {{#each ratings}}
  18. <td class="rating">
  19. <h5>{{description}}</h5>
  20. {{#t}}{{n points precision=2 strip_insignificant_zeros=true}} Points{{/t}}
  21. </td>
  22. {{/each}}
  23. <td class="total">
  24. <h5 class="total">{{#t "total_points"}}Total Points{{/t}}</h5>
  25. {{#t}}{{n points_possible precision=2 strip_insignificant_zeros=true}} Points{{/t}}
  26. </td>
  27. </tr>
  28. </table>
  29. {{#if setQuizMastery}}
  30. <label for="outcome_mastery_at">
  31. {{#t "mastery_at_label"}}Set mastery for any score at or above:{{/t}}
  32. <input type="text" name="mastery_at" id="outcome_mastery_at" value="60" />
  33. %
  34. </label>
  35. {{else}}
  36. {{#if useForScoring}}
  37. <label for="outcome_use_for_scoring">
  38. <input type="checkbox" id="outcome_use_for_scoring" class="criterion_for_scoring" checked />
  39. {{#t "use_for_scoring"}}Use this criterion for scoring{{/t}}
  40. </label>
  41. {{else}}
  42. <p>{{#t}}Mastery: {{n mastery_points precision=2 strip_insignificant_zeros=true}} Points{{/t}}</p>
  43. {{/if}}
  44. {{/if}}
  45. <div id="calculation_method" data-calculation-method="{{calculation_method}}">
  46. {{#t}}Calculation Method{{/t}}: {{ friendlyCalculationMethod }}
  47. </div>
  48. <div class="content-box">
  49. <div class="grid-row">
  50. <!-- Hook for OutcomeCalculationMethodFormView -->
  51. <div class="col-xs-12 outcome-calculation-method-form"></div>
  52. </div>
  53. </div>
  54. {{#if assessedInContext}}
  55. <div id="assessed_info_banner" class="alert alert-info">
  56. <span>
  57. {{#t}}This outcome has been used to assess a student and cannot be edited or deleted{{/t}}
  58. </span>
  59. </div>
  60. {{/if}}
  61. {{#if can_manage}}
  62. <div class="pull-right">
  63. <button class="move_button ui-button ui-widget ui-state-default ui-corner-all">
  64. <span aria-hidden="true">{{#t}}Move{{/t}}</span>
  65. </button>
  66. {{#if can_edit}}
  67. <button class="edit_button ui-button ui-widget ui-state-default ui-corner-all"
  68. {{#if assessedInContext}} disabled {{/if}}>
  69. <span aria-hidden="true">{{#t "links.edit_outcome"}}Edit{{/t}}</span>
  70. </button>
  71. {{/if}}
  72. {{#if can_unlink}}
  73. <button class="delete_button ui-button ui-widget ui-state-default ui-corner-all"
  74. {{#if assessedInContext}} disabled {{/if}}>
  75. <span aria-hidden="true">{{#t "links.delete_outcome"}}Delete{{/t}}</span>
  76. </button>
  77. {{/if}}
  78. </div>
  79. {{/if}}