CreateGroup.handlebars 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <div class="form-dialog-content">
  2. <div class="form-horizontal">
  3. {{#unless can_change_weighting}}
  4. <div class="ag-settings-weights-message alert">{{#t}}Assignment group weights and drop rules can't be edited because
  5. there are assignments in one of the groups whose due dates are closed.{{/t}}</div>
  6. {{/unless}}
  7. <div class="control-group">
  8. <label class="control-label" for="ag_{{label_id}}_name">
  9. {{#t "group_name"}}Group Name:{{/t}}
  10. </label>
  11. <div class="controls">
  12. <input
  13. type="text"
  14. id="ag_{{label_id}}_name"
  15. name="name"
  16. value="{{name}}"
  17. placeholder='{{#t "example_group_name"}}e.g., Essay Group 1{{/t}}'
  18. />
  19. </div>
  20. </div>
  21. {{#if show_weight}}
  22. <div class="control-group">
  23. <div class="controls">
  24. <input
  25. type="text"
  26. id="ag_{{label_id}}_group_weight"
  27. class="span1 group_weight"
  28. name="group_weight"
  29. value="{{#if group_weight}}{{n group_weight}}{{/if}}"
  30. {{#unless can_change_weighting}}readonly{{/unless}}
  31. />
  32. <label style="display:inline-block" for="ag_{{label_id}}_group_weight">
  33. {{#t "percent_of_total"}}% of total grade{{/t}}
  34. </label>
  35. </div>
  36. </div>
  37. {{/if}}
  38. {{#if editable_drop}}
  39. <hr/>
  40. <fieldset>
  41. <legend class="drop_rules_section">{{#t}}Number of scores to ignore for each student{{/t}}</legend>
  42. <div class="control-group">
  43. <label class="control-label" for="ag_{{label_id}}_drop_lowest">
  44. {{#t "drop_lowest"}}Lowest Scores:{{/t}}
  45. </label>
  46. <div class="controls">
  47. <input
  48. type={{number_input}}
  49. id="ag_{{label_id}}_drop_lowest"
  50. class="span1 field"
  51. name="rules[drop_lowest]"
  52. value="{{n drop_lowest}}"
  53. {{#unless can_change_weighting}}readonly{{/unless}}
  54. />
  55. </div>
  56. </div>
  57. <div class="control-group">
  58. <label class="control-label" for="ag_{{label_id}}_drop_highest">
  59. {{#t "drop_highest"}}Highest Scores:{{/t}}
  60. </label>
  61. <div class="controls">
  62. <input
  63. type={{number_input}}
  64. id="ag_{{label_id}}_drop_highest"
  65. class="span1 field"
  66. name="rules[drop_highest]"
  67. value="{{n drop_highest}}"
  68. {{#unless can_change_weighting}}readonly{{/unless}}
  69. />
  70. </div>
  71. </div>
  72. <hr/>
  73. <div class="control-group">
  74. <label class="control-label" id="ag_{{label_id}}_never_drop">
  75. {{#t "never_drop"}}Never Drop:{{/t}}
  76. </label>
  77. <div class="controls never_drop_rules_group">
  78. </div>
  79. </div>
  80. </fieldset>
  81. {{/if}}
  82. </div>
  83. </div>
  84. <div class="form-controls">
  85. <button
  86. class="cancel_button btn dialog_closer"
  87. type="button"
  88. >{{#t "cancel"}}Cancel{{/t}}</button>
  89. <button
  90. class="create_group btn btn-primary"
  91. data-text-while-loading='{{#t "saving"}}Saving...{{/t}}'
  92. type="submit"
  93. >{{#t "save"}}Save{{/t}}</button>
  94. </div>