EditView.handlebars 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <div id="edit_assignment_wrapper">
  2. {{#if frozen}}
  3. <div class="alert alert-info">
  4. <i class="icon-warning"></i> {{#t}}Some settings have been administratively locked.{{/t}}
  5. </div>
  6. {{/if}}
  7. {{#if inClosedGradingPeriod}}
  8. <div class="alert alert-info">
  9. <i class="icon-warning"></i> {{#t}}Some settings have been disabled because the assignment is in a closed grading period.{{/t}}
  10. </div>
  11. {{/if}}
  12. <div class="control-group">
  13. {{#if lockedItems.content}}
  14. <h1 id="assignment_name" class="title">{{name}}</h1>
  15. <input type="hidden" name="name" value="{{name}}"/>
  16. {{else}}
  17. <div>
  18. <label for="assignment_name" class="screenreader-only">{{#t}}Assignment Name{{/t}}</label>
  19. <input id="assignment_name"
  20. name="name"
  21. placeholder="{{#t "assignment_name"}}Assignment Name{{/t}}"
  22. value="{{name}}"
  23. type="text"
  24. maxlength="254"
  25. class="input-block-level"
  26. {{#if inClosedGradingPeriod}}
  27. readonly
  28. {{/if}}
  29. {{disabledIfIncludes frozenAttributes "title"}}
  30. autofocus/>
  31. </div>
  32. {{/if}}
  33. </div>
  34. {{#unless isQuizLTIAssignment}}
  35. <div class="control-group">
  36. {{#ifIncludes frozenAttributes "description"}}
  37. <div class="frozen-description user_content">
  38. {{convertApiUserContent description}}
  39. </div>
  40. {{else}}
  41. {{#if lockedItems.content}}
  42. <div id="assignment_description" class="assignment_description">
  43. {{convertApiUserContent description}}
  44. </div>
  45. {{else}}
  46. <div style="float: right;">
  47. <a href="#" class="rte_switch_views_link">
  48. {{#t "#editor.switch_editor_html"}}HTML Editor{{/t}}
  49. </a>
  50. <a href="#" class="rte_switch_views_link" style="display:none;">
  51. {{#t "#editor.switch_editor_rich_text"}}Rich Content Editor{{/t}}
  52. </a>
  53. </div>
  54. <div style="clear:both;"></div>
  55. <textarea id="assignment_description"
  56. name="description"
  57. aria-label="{{#t "description"}}Description{{/t}}"
  58. {{disabledIfIncludes frozenAttributes "description"}}>
  59. {{convertApiUserContent description forEditing=1}}
  60. </textarea>
  61. {{/if}}
  62. {{/ifIncludes}}
  63. </div>
  64. {{/unless}}
  65. <div class="control-group">
  66. <div class="form-column-left no-group">
  67. <label for="assignment_points_possible">
  68. {{#t "points_possible"}}Points{{/t}}
  69. </label>
  70. </div>
  71. <div class="form-column-right">
  72. <input id="assignment_points_possible"
  73. name="points_possible"
  74. value="{{n pointsPossible}}"
  75. type="text"
  76. {{#ifAny inClosedGradingPeriod lockedItems.points}}
  77. readonly
  78. {{/ifAny}}
  79. {{disabledIfIncludes frozenAttributes "points_possible"}}
  80. />
  81. {{#unless lockedItems.points}}
  82. <div aria-live="polite" role="alert">
  83. <div id=point_change_warning class="alert">
  84. {{#t}}If you change an assignment's points possible, you must regrade any submissions.{{/t}}
  85. </div>
  86. </div>
  87. {{/unless}}
  88. </div>
  89. </div>
  90. <fieldset id="assignment_group_selector" class="control-group">
  91. </fieldset>
  92. <div id="grading_type_selector"></div>
  93. <div id="graded_assignment_fields"
  94. aria-expanded="{{not isNotGraded}}"
  95. style="{{hiddenIf isNotGraded}}">
  96. {{!--this empty div is in place to push the checkbox to the right of it--}}
  97. <div class="form-column-left"></div>
  98. <div id="omit-from-final-grade" class="form-column-right" style="margin-top: 14px;">
  99. <label class="checkbox">
  100. {{#if inClosedGradingPeriod}}
  101. {{checkbox "omitFromFinalGrade"
  102. id="assignment_omit_from_final_grade"
  103. name="omit_from_final_grade"
  104. readonly="readonly"
  105. aria-readonly="true"
  106. }}
  107. {{else}}
  108. {{checkbox "omitFromFinalGrade"
  109. id="assignment_omit_from_final_grade"
  110. name="omit_from_final_grade"
  111. }}
  112. {{/if}}
  113. {{#t}}Do not count this assignment towards the final grade{{/t}}
  114. </label>
  115. </div>
  116. {{>[assignments/submission_types_form]}}
  117. <fieldset id="similarity_detection_tools">
  118. </fieldset>
  119. {{#unless isLargeRoster}}
  120. <fieldset id="group_category_selector"
  121. class="control-group"
  122. style="{{hiddenIf isExternalTool}}">
  123. </fieldset>
  124. {{/unless}}
  125. {{#unless isLargeRoster}}
  126. <fieldset id="assignment_peer_reviews_fields"
  127. class="control-group"
  128. style="{{hiddenIf isExternalTool}}">
  129. </fieldset>
  130. {{/unless}}
  131. {{#if postToSISEnabled}}
  132. <fieldset>
  133. <div class="form-column-left">{{#t}}Sync to {{postToSISName}}{{/t}}</div>
  134. <div class="form-column-right" style="margin-top: 14px;">
  135. <label class="checkbox">
  136. {{checkbox "postToSIS"
  137. id="assignment_post_to_sis"
  138. name="post_to_sis"
  139. }}
  140. {{#t}}Include this assignment's grades when syncing to your school's Student Information System{{/t}}
  141. </label>
  142. </div>
  143. </fieldset>
  144. {{/if}}
  145. {{#unless isQuizLTIAssignment}}
  146. <fieldset>
  147. <div class="form-column-left">{{#t}}Moderated Grading{{/t}}</div>
  148. <div class="form-column-right" style="margin-top: 14px;">
  149. <label class="checkbox">
  150. {{checkbox "moderatedGrading"
  151. id="assignment_moderated_grading"
  152. name="moderated_grading"
  153. }}
  154. {{#t}}Allow a moderator to review multiple independent grades for selected submissions{{/t}}
  155. </label>
  156. </div>
  157. </fieldset>
  158. {{/unless}}
  159. {{#if anonymousInstructorAnnotationsEnabled}}
  160. <fieldset>
  161. <div class="form-column-left">{{#t}}Anonymous Instructor Annotations{{/t}}</div>
  162. <div class="form-column-right" style="margin-top: 14px;">
  163. <label class="checkbox">
  164. {{checkbox "anonymousInstructorAnnotations" id="assignment_anonymous_instructor_annotations" name="anonymous_instructor_annotations"}}
  165. {{#t}}Anonymize all annotations made by instructors on submissions for this assignment in SpeedGrader{{/t}}
  166. </label>
  167. </div>
  168. </fieldset>
  169. {{/if}}
  170. </div>
  171. {{#if canFreeze}}
  172. <div class="form-column-left"></div>
  173. <div class="form-column-right">
  174. <fieldset>
  175. <label class="checkbox" for="assignment_freeze_on_copy">
  176. {{checkbox "freezeOnCopy"
  177. id="assignment_freeze_on_copy"
  178. name="freeze_on_copy"}}
  179. {{#t "freeze_properties"}}Lock assignment properties when copied{{/t}}
  180. </label>
  181. </fieldset>
  182. </div>
  183. {{/if}}
  184. <div id="overrides-wrapper">
  185. <div class="form-column-left">
  186. {{#t}}Assign{{/t}}
  187. </div>
  188. <div class="overrides-column-right js-assignment-overrides overrideFormFlex">
  189. </div>
  190. </div>
  191. </div>
  192. {{#if conditionalReleaseServiceEnabled}}
  193. <div id="mastery-paths-editor" style="display: none">
  194. <div id="conditional_release_target" />
  195. </div>
  196. {{/if}}
  197. {{#if isQuizLTIAssignment}}
  198. <input type="hidden" name="quiz_lti" value="1" />
  199. {{/if}}
  200. <input type='hidden' id="secure_params" name="secure_params" value="{{secureParams}}" />
  201. <div class="form-actions" style="padding-left: 10px;">
  202. <div style="float: left; min-width: 300px;">
  203. <label class="checkbox" style="text-align:left;" for="assignment_notify_of_update">
  204. {{checkbox "notifyOfUpdate"
  205. id="assignment_notify_of_update"
  206. name="notify_of_update"}}
  207. {{#t "notify_content_change"}}Notify users that this content has changed{{/t}}
  208. </label>
  209. </div>
  210. <button type="button" class="btn cancel_button">
  211. {{#t "#buttons.cancel"}}Cancel{{/t}}
  212. </button>
  213. {{#unless published}}
  214. <button type="button" class="btn btn-default save_and_publish">
  215. {{#t "buttons.save_and_publish"}}Save & Publish{{/t}}
  216. </button>
  217. {{/unless}}
  218. <button type="submit" class="btn btn-primary">
  219. {{#t "buttons.save"}}Save{{/t}}
  220. </button>
  221. </div>