IndexView.handlebars 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {{#if course_home}}
  2. <h2 class="screenreader-only">
  3. {{#t "assignments"}}Assignments{{/t}}
  4. </h2>
  5. {{else}}
  6. <h1 class="screenreader-only">
  7. {{#t "assignments"}}Assignments{{/t}}
  8. </h1>
  9. {{/if}}
  10. <div tabindex="0" class="drag_and_drop_warning screenreader-only">
  11. {{#t}}Warning: for improved accessibility of reordering assignments and groups, please use the Move To Dialog option found in the menu.{{/t}}
  12. </div>
  13. <div class="header-bar">
  14. <div class="header-bar-left ic-Form-control assignment-search">
  15. <div class="ic-Multi-input">
  16. {{#if ENV.HAS_GRADING_PERIODS}}
  17. <select class="ic-Input" id="grading_period_selector" aria-label="{{#t}}Select a Grading Period{{/t}}">
  18. <option value="all">{{#t}}All Grading Periods{{/t}}</option>
  19. {{#each ENV.active_grading_periods}}
  20. <option id="grading_period_{{id}}" value="{{@index}}">{{title}}</option>
  21. {{/each}}
  22. </select>
  23. {{/if}}
  24. <label class="screenreader-only">
  25. {{#t "search_for_assignment"}}Search for Assignment{{/t}}
  26. </label>
  27. <input
  28. class="ic-Input"
  29. id="search_term"
  30. name="search_term"
  31. type="search"
  32. value=""
  33. disabled
  34. placeholder="{{#t "search_for_assignment"}}Search for Assignment{{/t}}"
  35. >
  36. </div>
  37. </div>
  38. <div class="header-bar-right">
  39. {{#if ENV.PERMISSIONS.manage_course}}
  40. {{#if ENV.QUIZ_LTI_ENABLED}}
  41. <span class="new_quiz_lti_wrapper">
  42. <a
  43. href="{{ENV.URLS.new_assignment_url}}?quiz_lti"
  44. class="new_quiz_lti btn btn-beta icon-plus"
  45. role="button"
  46. title='{{#t "title_add_quiz_lti"}}Add Quiz/Test{{/t}}'
  47. aria-label='{{#t "title_add_quiz_lti"}}Add Quiz/Test{{/t}}'
  48. >{{#t "add_quiz_lti"}}Quiz/Test{{/t}}</a>
  49. </span>
  50. {{/if}}
  51. <a
  52. href="#"
  53. class="btn icon-plus"
  54. id="addGroup"
  55. role="button"
  56. title='{{#t "title_add_group"}}Add Assignment Group{{/t}}'
  57. aria-label='{{#t "title_add_group"}}Add Assignment Group{{/t}}'
  58. >{{#t "add_group"}}Group{{/t}}</a>
  59. <a
  60. href="{{ENV.URLS.new_assignment_url}}"
  61. class="new_assignment btn btn-primary icon-plus"
  62. role="button"
  63. title='{{#t "title_add_assignment"}}Add Assignment{{/t}}'
  64. aria-label='{{#t "title_add_assignment"}}Add Assignment{{/t}}'
  65. >{{#t "add_assignment"}}Assignment{{/t}}</a>
  66. <span id="settingsMountPoint"></span>
  67. {{else}}
  68. <div data-view="showBy"></div>
  69. {{/if}}
  70. </div>
  71. </div>
  72. <div data-view="assignmentGroups" class="item-group-container" id="ag-list"></div>
  73. {{#if ENV.PERMISSIONS.manage_course}}
  74. <form data-view="createGroup" class="form-dialog"></form>
  75. <form data-view="assignmentSettings" class="form-dialog"></form>
  76. <form data-view="assignmentSyncSettings" class="form-dialog"></form>
  77. {{/if}}