sis_agent_token_auth.mustache 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <%
  2. # Copyright (C) 2016 - 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. <% if !@account.site_admin? &&
  19. @account.root_account? &&
  20. @account.grants_right?(@current_user, :manage_site_settings) %>
  21. <fieldset id="add_sis_app_token">
  22. <h2 class="screenreader-only">{{#t}}SIS Agent Token Authentication{{/t}}</h2>
  23. <legend>{{#t}}SIS Agent Token Authentication{{/t}}</legend>
  24. <p style="font-size: 0.9em;">{{#t}}This will allow you to authenticate Canvas for posting grades to SIS{{/t}}</p>
  25. <%= f.fields_for :settings do |settings| %>
  26. <table class="formtable">
  27. <tr>
  28. <td><%= settings.blabel :sis_app_token, :en => "SIS Agent Token" %></td>
  29. <td><%= settings.text_field :sis_app_token, :value => @account.settings[:sis_app_token] %></td>
  30. </tr>
  31. <tr>
  32. <td><%= settings.blabel :sis_app_url, :en => "SIS App URL" %></td>
  33. <td><%= settings.text_field :sis_app_url, :value => @account.settings[:sis_app_url] %></td>
  34. </tr>
  35. </table>
  36. <% end %>
  37. </fieldset>
  38. <% end %>