message_students.mustache 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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="message_students_dialog" style="display: none;">
  19. <%= form_tag conversations_url, :id => "message_assignment_recipients" do %>
  20. <%= hidden_field_tag :recipients, "", :class => "recipient_ids" %>
  21. <%= hidden_field_tag :group_conversation, "true" %>
  22. <%= hidden_field_tag :bulk_message, "true" %>
  23. <%= hidden_field_tag :context_code, "" %>
  24. <%= hidden_field_tag :mode, "async" %>
  25. <h2>{{#t}}Message students who...{{/t}}</h2>
  26. <div style="margin-bottom: 15px;">
  27. <%= t('for_title', 'for %{title}', :title => '<span class="asset_title">&nbsp;</span>'.html_safe) %>
  28. </div>
  29. <div style="margin-bottom: 10px;">
  30. <select class="message_types" aria-label="{{#t}}Message Type{{/t}}">
  31. </select>
  32. <span class="cutoff_holder">
  33. <input type="text" class="cutoff_score" style="width: 35px;" aria-label="{{#t}}cutoff score{{/t}}" aria-describedby="out_of" />
  34. <span class="out_of" id="out_of">
  35. <%= t('out_of_points', 'out of %{points_possible}', :points_possible => '<span class="points_possible">&nbsp;</span>'.html_safe) %>
  36. </span>
  37. </span>
  38. </div>
  39. <ul class="student_list">
  40. <li class="student blank" style="display: none;">
  41. <span class="name">&nbsp;</span>
  42. <span class="score">&nbsp;</span>
  43. <button class="remove-button Button Button--icon-action"><i class="icon-x"></i></button>
  44. </li>
  45. </ul>
  46. <div class="clear"></div>
  47. <table class="formtable" style="width: 100%;">
  48. <tr>
  49. <td style="font-weight: bold;" colspan="2">
  50. <%= label_tag :subject, before_label(:subject, "Subject") %>
  51. <%= text_field_tag :subject, "", :style => "width: 90%;" %>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td style="font-weight: bold;" colspan="2">
  56. <%= label_tag :body, before_label(:body, "Message") %>
  57. <%= text_area_tag :body, "", :style => "width: 90%; height: 100px;" %>
  58. </td>
  59. </tr>
  60. </table>
  61. <div class="button-container">
  62. <button class="Button cancel_button">{{#t}}Cancel{{/t}}</button>
  63. <button type="submit" class="Button Button--primary send_button">{{#t}}Send Message{{/t}}</button>
  64. </div>
  65. <% end %>
  66. </div>