rubric_dialog.mustache 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. <div class="rubric_dialog" id="rubric_dialog" style="display: none;">
  19. <h2 style="float: left;"><%= t 'titles.find_a_rubric', "Find a Rubric" %></h2>
  20. <a style="float: right;" href="<%= context_url(@context, :context_rubrics_url) %>"><%= t 'links.manage_rubrics', "Manage Rubrics" %></a>
  21. <a href="<%= context_url(@context, :context_grading_rubrics_url) %>" class="grading_rubrics_url" style="display: none;">&nbsp;</a>
  22. <div class="clear"></div>
  23. <div class="loading_message" style="margin: 10px; text-align: center;">
  24. </div>
  25. <% css_bundle("side_tabs_table") %>
  26. <table class="rubrics_dialog_rubrics_holder side_tabs_table" style="display: none;">
  27. <tr>
  28. <td class="left far_left">
  29. <ul class="rubrics_dialog_contexts_select unstyled_list side_tabs">
  30. <li class="rubrics_dialog_context_select blank" style="display: none;">
  31. <a href="#">
  32. <span class="name">&nbsp;</span>
  33. <span class="context_code" style="display: none;">&nbsp;</span>
  34. </a>
  35. <div class="rubrics" style="font-size: 0.8em; color: #aaa;">&nbsp;</div>
  36. </li>
  37. </ul>
  38. </td>
  39. <td class="left">
  40. <div class="rubrics_loading_message" style="display: none; padding: 0 5px;">
  41. </div>
  42. <ul class="rubrics_dialog_rubrics_select unstyled_list side_tabs">
  43. <li class="rubrics_dialog_rubric_select blank" style="display: none;">
  44. <a href="#">
  45. <span class="title">&nbsp;</span>
  46. <span class="id" style="display: none;">&nbsp;</span>
  47. </a>
  48. <div class="rubrics" style="font-size: 0.8em; color: #aaa;">
  49. <%= t :criterion_count, "%{count} criteria", :count => '<span class="criterion_count">&nbsp;</span>'.html_safe %><br/>
  50. <%= t :points_possible, "%{points} points possible", :points => '<span class="points_possible">&nbsp;</span>'.html_safe %>
  51. </div>
  52. </li>
  53. </ul>
  54. </td>
  55. <td class="right">
  56. <div class="side_tabs_content rubrics_dialog_rubrics">
  57. <div style="margin-bottom: 10px; display: none;" class="rubrics_dialog_rubric blank">
  58. <div style="margin-bottom: 10px;" class="rubrics_dialog_rubric_brief side_tabs_content_with_room_for_button">
  59. <span class="id" style="display: none;">&nbsp;</span>
  60. <div>
  61. <div style="float: left;">
  62. <a href="#" class="select_rubric_link"><b class="title">&nbsp;</b></a>
  63. <span class="display_name" style="padding-left: 10px; font-size: 0.8em; color: #888;">
  64. &nbsp;
  65. </span>
  66. </div>
  67. <div class="clear"></div>
  68. </div>
  69. <div style="margin-left: 5px;" class="details">
  70. {{> views/shared/rubric_summary}}
  71. </div>
  72. <div class="clear"></div>
  73. </div>
  74. <button type="button" class="btn select_rubric_link"><%= t 'buttons.use_this_rubric', "Use This Rubric" %></button>
  75. </div>
  76. </div>
  77. </td>
  78. </tr>
  79. </table>
  80. <div style="margin-top: 5px; text-align: right; display: none;"><a href="#" class="cancel_find_rubric_link"><%= t '#buttons.cancel', "Cancel" %></a></div>
  81. <div style="display: none;">
  82. <a href="<%= context_url(@context, :context_assignment_url, assignment.id) %>" style="display: none;" class="update_rubric_url">&nbsp;</a>
  83. <a href="<%= context_url(@context, :context_rubric_associations_url) %>" class="select_rubric_url">&nbsp;</a>
  84. <span class="rubric_association_type">Assignment</span>
  85. <span class="rubric_association_id"><%= assignment.id %></span>
  86. <span class="rubric_association_purpose">grading</span>
  87. </div>
  88. </div>