assignment_freezer_settings.mustache 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <%
  2. # Copyright (C) 2012 - 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. <p><%= mt(:description, <<-TEXT)
  23. This plugin allows admins to check a property on assignments that makes the configured
  24. properties un-editable once the assignment is copied into another course.
  25. TEXT
  26. %></p>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td colspan="2">
  31. <%= f.check_box "no_copying", {}, 'yes', 'no' %>
  32. <%= f.label "no_copying", t('no_copying_frozen', "Don't allow frozen assignments to be copied.") %>
  33. </td>
  34. </tr>
  35. <% Assignment::FREEZABLE_ATTRIBUTES.sort.each do |att| %>
  36. <tr>
  37. <td colspan=2><%= f.check_box att, {}, 'yes', 'no' %>
  38. <%= f.label att, att %></td>
  39. </tr>
  40. <% end %>
  41. </table>
  42. <% end %>