app_center_settings.mustache 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <%
  2. # Copyright (C) 2013 - 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><%= t "App Center will appear in the \"Apps\" tab on the settings page of either a course or account. " +
  23. "The URL provided below should point to a valid App Center endpoint (for example, %{url} -- be sure to omit the trailing slash",
  24. url: "https://www.eduappcenter.com" %></p>
  25. </td>
  26. </tr>
  27. <tr>
  28. <td><%= f.blabel :token, :en => "Access Token" %></td>
  29. <td>
  30. <%= f.text_field :token %>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td><%= f.blabel :base_url, :en => "Base URL" %></td>
  35. <td>
  36. <%= f.text_field :base_url %>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td><%= f.blabel :apps_index_endpoint, :en => "Apps Index Endpoint" %></td>
  41. <td>
  42. <%= f.text_field :apps_index_endpoint %>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td><%= f.blabel :app_reviews_endpoint, :en => "App Show Endpoint" %></td>
  47. <td>
  48. <%= f.text_field :app_reviews_endpoint %>
  49. </td>
  50. </tr>
  51. </table>
  52. <% end %>