Commit 031a7486 by Greg Price

Add login link to registration page if user is trying to enroll in a class

If an unauthenticated user clicks on a course registration button, they will
be redirected to the user registration page. Now, that page will include a link
to the login page. If the user follows the link and logs in successfully, then
they will be enrolled in the class.
parent e5846e64
......@@ -229,6 +229,17 @@
<h3 class="sr">Registration Help</h3>
</header>
% if course_id and enrollment_action:
<div class="cta">
<h3>Already registered?</h3>
<p class="instructions">
<a href="${reverse('signin_user')}?course_id=${course_id | h}&enrollment_action=${enrollment_action | h}">
Click here to log in.
</a>
</p>
</div>
% endif
<div class="cta cta-welcome">
<h3>Welcome to edX</h3>
<p>Registering with edX gives you access to all of our current and future free courses. Not ready to take a course just yet? Registering puts you on our mailing list – we will update you as courses are added.</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment