gradebook.mustache 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <%
  2. # Copyright (C) 2011 - present Instructure, Inc.
  3. #
  4. # This file is part of Canvas.
  5. #
  6. # Canvas is free software: you can redistribute it and/or modify it under
  7. # the terms of the GNU Affero General Public License as published by the Free
  8. # Software Foundation, version 3 of the License.
  9. #
  10. # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
  11. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License along
  16. # with this program. If not, see <http://www.gnu.org/licenses/>.
  17. %>
  18. <%
  19. content_for :page_title, t('Gradebook - %{context_name}', context_name: @context.name)
  20. @body_classes << "gradebook full-width"
  21. @show_left_side = true
  22. @collapse_course_menu = true
  23. @show_embedded_chat = false
  24. css_bundle :slickgrid, :gradezilla
  25. js_bundle :gradezilla
  26. %>
  27. <div id="keyboard_navigation"></div>
  28. <div id="gradebook_wrapper">
  29. <div class="assignment-gradebook-container hidden">
  30. <div id="gradebook-toolbar" class="toolbar">
  31. <div class="gradebook-menus">
  32. <span data-component="GradebookMenu" data-variant="DefaultGradebook"></span>
  33. <span data-component="ViewOptionsMenu"></span>
  34. <span data-component="ActionMenu"></span>
  35. </div>
  36. <div id="gradebook-actions">
  37. <button id="keyboard-shortcuts" class="Button--icon-action Button--active" type="button">
  38. <i class="icon-keyboard-shortcuts"></i>
  39. </button>
  40. <% if multiple_assignment_groups? %>
  41. <div class="gradebook-filter-container" id="assignment-group-filter-container"></div>
  42. <% end %>
  43. <% if grading_periods? %>
  44. <div class="gradebook-filter-container" id="grading-periods-filter-container"></div>
  45. <% end %>
  46. <% if visible_modules? %>
  47. <div class="gradebook-filter-container" id="modules-filter-container"></div>
  48. <% end %>
  49. <% if multiple_sections? %>
  50. <div class="gradebook-filter-container" id="sections-filter-container"></div>
  51. <% end %>
  52. <div class="gradebook-filter-container gradebook_filter" id="search-filter-container">
  53. <% placeholder = t('Search…') %>
  54. <input
  55. type="text"
  56. class="search-query"
  57. placeholder="<%= placeholder %>"
  58. aria-label="<%= placeholder %>"
  59. aria-disabled="true"
  60. disabled
  61. >
  62. </div>
  63. <div class="gradebook_menu">
  64. <span id="gradebook-settings-modal-button-container"></span>
  65. <span data-component="GradebookSettingsModal"></span>
  66. </div>
  67. </div>
  68. </div>
  69. <div id="gradebook-grid-wrapper" class="use-css-transitions-for-show-hide" style="display:none;">
  70. <div id="gradebook_grid"></div>
  71. </div>
  72. <div style="display:none;">
  73. {{> views/shared/message_students}}
  74. {{> views/submissions/submission_download}}
  75. </div>
  76. </div>
  77. <% if @context.feature_enabled?(:outcome_gradebook) %>
  78. <div class="outcome-gradebook-container">
  79. <div class="outcome-menus hidden" style="text-align: right;">
  80. <span data-component="SectionFilter"></span>
  81. <span data-component="GradebookMenu" data-variant="DefaultGradebookLearningMastery"></span>
  82. </div>
  83. <div class="outcome-gradebook hidden"></div>
  84. </div>
  85. <% end %>
  86. <span data-component="GridColor"></span>
  87. <span data-component="StatusesModal"></span>
  88. </div>