confirm_mobile.mustache 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. <%
  19. content_for :page_title, t(:page_title, "App Login")
  20. %>
  21. <div class="face">
  22. <p>
  23. <%= mt 'details.allow_application', " Allow %{app_name} to access your account.", :app_name => @provider.app_name %>
  24. </p>
  25. <%= form_tag oauth2_auth_accept_path do %>
  26. <div class="button_box">
  27. <button type="submit" class="Button Button--primary Button--block"><%= t 'authorize', 'Authorize' %></button>
  28. <%= link_to(t(:cancel, "Cancel"), oauth2_auth_deny_path, :class => "Button Button--block") %>
  29. </div>
  30. <% if true#unless @provider.scopes.blank? %>
  31. <div class="control-group">
  32. <label class="checkbox" for="remember_access">
  33. <%= check_box_tag(:remember_access, "1", false, :class => "checkbox") %>
  34. <%= t 'remember_auth', 'Remember Authorization' %>
  35. </label>
  36. </div>
  37. <% end %>
  38. <% end %>
  39. </div>