grade_export_settings.mustache 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. <%= fields_for :settings, OpenObject.new(settings) do |f| %>
  19. <table style="width: 500px;" class="formtable">
  20. <tr>
  21. <td colspan="2">
  22. <%= mt(:description, <<-TEXT)
  23. This plugin allows final grades to be published back to a student information system (SIS). When enabled, the user will be given an option in the gradebook to publish these grades. This will occur via a POST request to the specified publish endpoint. Each type defines it's own content format and mime type. The response from the endpoint does not matter and is currently ignored.
  24. For example, the Instructure formatted CSV will POST a csv file with mime type 'text/csv' to the specified endpoint, containing the following columns:
  25. "publisher_id", "publisher_sis_id", "course_id", "course_sis_id", "section_id", "section_sis_id", "student_id", "student_sis_id", "enrollment_id", "enrollment_status", "score", "grade"
  26. (Note: the "grade" column is only returned if the course specifies a grading standard)
  27. For each student in the course being published, there will be 1 or more rows in the published csv. Specifically, there will be 1 row for each login that the student has in the course's root account. Most of the time this will result in 1 row per student, but if the student has multiple logins, there will be a row for each of them.
  28. TEXT
  29. %>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td><%= f.blabel :format_type, :en => "Output format type" %></td>
  34. <td><%= f.select :format_type, Course.valid_grade_export_types.keys.map{|k| [Course.valid_grade_export_types[k][:name], k]}, {} %>
  35. </tr>
  36. <tr>
  37. <td><%= f.blabel :publish_endpoint, :en => "Endpoint to publish to" %></td>
  38. <td><%= f.text_field :publish_endpoint %></td>
  39. </tr>
  40. <tr>
  41. <td colspan=2><%= f.check_box :wait_for_success, {}, 'yes', 'no' %>
  42. <%= f.label :wait_for_success, :en => "Wait for success notifications" %></td>
  43. </tr>
  44. <tr>
  45. <td><%= f.blabel :success_timeout, :en => "Success notification timeout (in seconds)" %></td>
  46. <td><%= f.text_field :success_timeout %></td>
  47. </tr>
  48. </table>
  49. <% end %>