confirm_enrollments.mustache 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. <form action="<%= self_enrollment_url %>" method="post" class="ic-Self-enrollment-form" id="enroll_form">
  19. <input type="hidden" name="initial_action" value="enroll">
  20. <%= registration_summary || content_tag(:p, mt(:getting_started, "You are enrolling in **%{course}**", :course => @course.name)) %>
  21. <div class="ic-Self-enrollment-footer-modal-layout">
  22. <div class="ic-Self-enrollment-footer">
  23. <div class="ic-Self-enrollment-footer__Secondary">
  24. <a href="<%= privacy_policy_url %>" target="_blank" class="footer-info"><%= t '#site.view_privacy_policy', 'View Privacy Policy' %></a>
  25. </div>
  26. <div class="ic-Self-enrollment-footer__Primary">
  27. <button class="btn btn-primary" type="submit">
  28. <%= @confirm_enrollment_url ? t("buttons.next", "Next") : t("buttons.enroll_in_course", "Enroll in Course") %>
  29. </button>
  30. </div>
  31. </div>
  32. </div>
  33. </form>