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.
This commit is contained in:
Greg Price
2013-04-30 15:05:36 -04:00
parent e5846e64bd
commit 031a74865e

View File

@@ -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>