authenticate.mustache 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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" id="enroll_form" class="ic-Self-enrollment-form">
  19. <%= registration_summary || content_tag(:p, mt(:getting_started, "You are enrolling in **%{course}**.", :course => @course.name)) %>
  20. <p><%= t("Please enter your %{label_name} and password:", :label_name => @login_label_name) %></p>
  21. <input type="hidden" name="initial_action" value="log_in">
  22. <div class="ic-Form-control" id="email_info">
  23. <label class="ic-Label" for="student_email"><%= @login_label_name %></label>
  24. <input type="text" class="ic-Input" id="student_email" name="pseudonym[unique_id]">
  25. </div>
  26. <div class="ic-Form-control">
  27. <label class="ic-Label" for="student_password"><%= t "labels.password", "Password" %></label>
  28. <input type="password" id="student_password" class="ic-Input" name="pseudonym[password]">
  29. </div>
  30. <div class="ic-Self-enrollment-footer-modal-layout">
  31. <div class="ic-Self-enrollment-footer">
  32. <div class="ic-Self-enrollment-footer__Secondary">
  33. <a href="<%= privacy_policy_url %>" target="_blank" class="footer-info"><%= t '#site.view_privacy_policy', 'View Privacy Policy' %></a>
  34. </div>
  35. <div class="ic-Self-enrollment-footer__Primary">
  36. <button class="btn btn-primary" type="submit"><%= @confirm_enrollment_url ? t("buttons.next", "Next") : t("buttons.enroll_in_course", "Enroll in Course") %></button>
  37. </div>
  38. </div>
  39. </div>
  40. </form>