google_docs_settings.mustache 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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"><%= mt(:description, <<-TEXT, :google_url => 'https://www.google.com/accounts/ManageDomains')
  22. You will need to [register your domain with Google](%{google_url}).
  23. Make a note of your "OAuth Consumer Key" and "OAuth Consumer Secret" values.
  24. TEXT
  25. %></td>
  26. </tr>
  27. <tr>
  28. <td><%= f.blabel :api_key, :en => "OAuth Consumer Key" %></td>
  29. <td>
  30. <%= f.text_field :api_key %>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td><%= f.blabel :secret_key, :en => "OAuth Consumer Secret" %></td>
  35. <td>
  36. <%= f.text_field :secret_key %>
  37. </td>
  38. </tr>
  39. </table>
  40. <% end %>