rubric_criterion_dialog.mustache 4.2 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 id="rubric_long_description_dialog" style="display: none;">
  19. <div class="description" style="border-bottom: 1px solid #ccc; padding: 5px 0; font-size: 1.2em; font-weight: bold; margin-bottom: 5px;">
  20. </div>
  21. <div class="editing">
  22. <textarea class="long_description" aria-label="<%= t 'labels.long_description', "Long Description" %>" name="long_description" style="width: 370px;"></textarea>
  23. <div class="button-container">
  24. <button type="button" class="btn btn button-secondary cancel_button"><%= t '#buttons.cancel', "Cancel" %></button>
  25. <button type="button" class="btn save_button"><%= t 'buttons.update_description', "Update Description" %></button>
  26. </div>
  27. </div>
  28. <div class="displaying">
  29. <div class="long_description">
  30. </div>
  31. </div>
  32. </div>
  33. <div id="rubric_criterion_comments_dialog" style="display: none;">
  34. <div
  35. class="criterion_description"
  36. style="border-bottom: 1px solid #ccc; padding: 5px 0; font-size: 1.2em; font-weight: bold; margin-bottom: 5px;"
  37. tabindex="-1"
  38. ></div>
  39. <div class="editing">
  40. <label for="criterion_comments_textarea">
  41. <%= before_label :additional_comments, "Additional Comments" %>
  42. </label>
  43. <textarea
  44. id="criterion_comments_textarea"
  45. class="criterion_comments"
  46. name="criterion_comments"
  47. style="width: 370px;"></textarea>
  48. <div class="button-container">
  49. <button type="button" class="btn btn button-secondary cancel_button"><%= t '#buttons.cancel', "Cancel" %></button>
  50. <button type="button" class="btn save_button"><%= t 'buttons.update_comments', "Update Comments" %></button>
  51. </div>
  52. </div>
  53. <div class="displaying">
  54. <%= before_label :additional_comments, "Additional Comments" %>
  55. <div class="criterion_comments" style="margin-top: 10px;">
  56. </div>
  57. </div>
  58. </div>
  59. <div id="rubric_rating_dialog" style="display: none;">
  60. <div class="description" style="border-bottom: 1px solid #ccc; padding: 5px 0; font-size: 1.2em; font-weight: bold; margin-bottom: 5px;">
  61. <span id="edit_rating_form_criterion_description"></span>
  62. </div>
  63. <div class="editing">
  64. <form id="edit_rating_form" class="no-margin-bottom">
  65. <div>
  66. <div><label id='rating_form_score_label' class="rating_form_label"><%= t "Rating Score" %></label></div>
  67. <span id='rating_form_max_score_label' hidden>{{#t}}Rating max score{{/t}}</span>
  68. <input id="points" aria-labelledby="rating_form_score_label" type="text" size="2" name="points" class="no-margin-bottom span1" />
  69. <span class="range_rating">{{#t}}to{{/t}} >
  70. <input aria-label="{{#t}}Rating min score') %>" type="text" size="2" name="min_points" class="no-margin-bottom span1 min_points" placeholder="<%= t('min{{/t}}"/>
  71. </span>{{#t}}pts{{/t}}
  72. </div>
  73. <div>
  74. <label for="rating_form_title" class="rating_form_label"><%= t "Rating Title" %></label>
  75. <input id="rating_form_title" type="text" class="rating_description" style="width: 90%;" name="description"/>
  76. </div>
  77. <div>
  78. <label for="rating_form_description" class="rating_form_label"><%= t "Rating Description" %></label>
  79. <textarea id="rating_form_description" rows="4" style="width: 90%;" class="rating_long_description" name="rating_long_description" form="edit_rating_form"></textarea>
  80. </div>
  81. <div class="button-container">
  82. <button type="button" class="btn button-secondary cancel_button"><%= t "Cancel" %></button>
  83. <button type="button" class="btn btn-primary save_button ok_button"><%= t "Update Rating" %></button>
  84. </div>
  85. </form>
  86. </div>
  87. </div>