find_outcome.mustache 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <% context ||= @context; purpose ||= 'rubric' %>
  19. <div id="find_outcome_criterion_dialog" style="display: none;" class="find_outcome">
  20. <div class="loading_message" style="margin: 10px; text-align: center;">
  21. </div>
  22. <% css_bundle("side_tabs_table") %>
  23. <table style="border-collapse: collapse;" class="outcomes_holder side_tabs_table" style="display: none;">
  24. <tr>
  25. <td class="left">
  26. <ul class="outcomes_selects unstyled_list side_tabs" style="max-height: 350px; width: 200px;">
  27. <li class="outcomes_select blank" style="display: none;">
  28. <a href="#">
  29. <span class="title">&nbsp;</span>
  30. <span class="id" style="display: none;">&nbsp;</span>
  31. </a>
  32. <div class="display_name" style="font-size: 0.8em;">&nbsp;</div>
  33. </li>
  34. </ul>
  35. </td>
  36. <td class="right">
  37. <div class="side_tabs_content outcomes_list" style="max-height: 350px;">
  38. <div class="outcome blank" style="display: none; cursor: pointer;" title="<%= t 'titles.select_and_add_criterion', "Select and Add Criterion" %>">
  39. <div class="learning_outcome_id" style="display: none;"></div>
  40. <div class="header short_description" style="font-weight: bold; font-size: 1.2em;"></div>
  41. <div class="body description" style="margin: 10px 0; font-size: 0.8em;"></div>
  42. <% if purpose == 'rubric' %>
  43. <div><%= before_label :criterion_ratings, "Criterion Ratings" %></div>
  44. <table>
  45. <tr>
  46. <td class="rating blank" style="display: none; padding: 2px 5px;">
  47. <div class="description"></div>
  48. <div class="long_description" style="font-size: 0.8em;"></div>
  49. <div><%= t :points, "%{points} pts", :points => '<span class="points"></span>'.html_safe %></div>
  50. </td>
  51. </tr>
  52. </table>
  53. <div style="font-size: 0.8em; margin-bottom: 10px;">
  54. <%= t :points_threshold, "threshold: %{points} pts", :points => '<span class="mastery_points">&nbsp;</span>'.html_safe %>
  55. </div>
  56. <% end %>
  57. <div class="button-container">
  58. <button type="button" class="btn select_outcome_link" style="float: right; margin: 0 0.5em 0.5em 0.5em;">
  59. <%= t 'buttons.add_outcome', "Add Outcome" %>
  60. </button>
  61. <div style="float: right; margin-top: 0.5em;">
  62. <% if purpose == 'rubric' %>
  63. <input type="checkbox" class="criterion_for_scoring" checked /><label><%= t 'labels.use_for_scoring', "use this criterion for scoring" %></label>
  64. <% elsif purpose == 'question_bank' %>
  65. <label for="outcome_question_bank_mastery" class="mastery_level_text">
  66. <%= before_label :master_level, "set mastery for any score at or above" %>
  67. </label>
  68. <input type="text" class="mastery_level" id="outcome_question_bank_mastery" title="<%= t 'titles.mastery_level', "percent above which to set mastery" %>" style="width: 40px;"/>%
  69. <% end %>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </td>
  75. </tr>
  76. </table>
  77. <a href="<%= context_url(context, :list_context_outcomes_url) %>" style="display: none;" class="outcomes_list_url">&nbsp;</a>
  78. </div>