outcomeForm.handlebars 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <form action="{{url}}" class="learning_outcome" method="post">
  2. <label class="span3" for="title">{{#t "title"}}Name this outcome{{/t}}:</label>
  3. <input class="outcome_title span3" name="title" id=title size="50" type="text" value="{{title}}" placeholder="{{#t}}New Outcome{{/t}}">
  4. <label class="span3" for="display_name">{{#t "display_name"}}Friendly name (optional){{/t}}:</label>
  5. <input class="outcome_display_name span3" name="display_name" id=display_name size="50" type="text" value="{{display_name}}">
  6. <label for="description">{{#t "description"}}Describe this outcome{{/t}}:</label>
  7. <div style="float: right;">
  8. <a href="#" class="rte_switch_views_link">
  9. {{t "HTML Editor"}}
  10. </a>
  11. <a href="#" class="rte_switch_views_link" style="display:none;">
  12. {{t "Rich Content Editor"}}
  13. </a>
  14. </div>
  15. <div style="clear:both;"></div>
  16. <textarea cols="40" name="description" id=description rows="20" style="display: none; width: 100%; height: 150px;">{{description}}</textarea>
  17. <div id="outcome_criterion_dialog" style="display: none;">
  18. {{#t "criterion_dialog"}}Learning outcomes can be included in assignment rubrics as an easy way
  19. to assess mastery of outcomes aligned to specific assignments. When you define
  20. a learning outcome, you should also define a criterion that can be used
  21. when building assignment rubrics. Define as many rubric columns as you
  22. need, and specify a point threshold that will be used to define mastery
  23. of this outcome.{{/t}}
  24. </div>
  25. <label>
  26. {{#t "criterion"}}Criterion ratings{{/t}}:
  27. <a class="outcome_information_link" title="{{#t "criterion_info_link"}}Click to learn about criterion ratings{{/t}}" tabindex=0 href="#"><i class="icon-question"></i></a>
  28. </label>
  29. <table class="criterion">
  30. <tbody>
  31. <tr>
  32. {{#eachWithIndex ratings}}
  33. {{> [outcomes/criterion]}}
  34. {{/eachWithIndex}}
  35. <td class="total">
  36. <h5 class="total">{{#t "total_points"}}Total Points{{/t}}</h5>
  37. <div class="points_possible">
  38. {{#t}}{{n points_possible precision=2 strip_insignificant_zeros=true}} Points{{/t}}
  39. </div>
  40. </td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. <div>
  45. <label for="mastery_points" style="display: inline">{{#t "mastery"}}Mastery at{{/t}}:</label>
  46. <input type="text" name="mastery_points" style="width: 20px;" class="mastery_points" id="mastery_points" value="{{n mastery_points precision=2 strip_insignificant_zeros=true}}">
  47. </div>
  48. <div>
  49. <label for="calculation_method" style="display: inline">{{#t "calculation_method"}}Calculation Method{{/t}}:</label>
  50. <select name="calculation_method" class="calculation_method" id="calculation_method" data-calculation-method="{{calculation_method}}" value="{{calculation_method}}">
  51. {{#each calculationMethods}}
  52. <option value="{{@key}}" {{ selectedIf @key ../calculation_method }}>
  53. {{friendlyCalculationMethod}}
  54. </option>
  55. {{/each}}
  56. </select>
  57. </div>
  58. <div class="content-box">
  59. <div class="grid-row">
  60. <!-- Hook for OutcomeCalculationMethodFormView -->
  61. <div class="col-xs-12 outcome-calculation-method-form"></div>
  62. </div>
  63. </div>
  64. <div class="align-right">
  65. <button type="button" class="btn cancel_button">{{#t "#buttons.cancel"}}Cancel{{/t}}</button>
  66. <button type="submit" class="btn btn-primary submit_button">{{#t "#buttons.save"}}Save{{/t}}</button>
  67. </div>
  68. </form>