%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from openedx.core.lib.courses import course_image_url %> <%inherit file="../main.html" /> <%namespace name='static' file='/static_content.html'/> <%block name="pagetitle">${_("Confirm Enrollment")}%block> <%block name="content">
% if reg_code_already_redeemed: ${_("You've clicked a link for an enrollment code that has already been used." " Check your {link_start}course dashboard{link_end} to see if you're enrolled in the course," " or contact your company's administrator." ).format( link_start=u''.format(url=reverse('dashboard')), link_end='' )} % elif redemption_success: ${_("You have successfully enrolled in {course_name}." " This course has now been added to your dashboard.").format(course_name=course.display_name) | h} % elif registered_for_course: ${_("You're already enrolled for this course." " Visit your {link_start}dashboard{link_end} to see the course." ).format( link_start=u''.format(url=reverse('dashboard')), link_end='' )} % elif course_full: ${_("The course you are enrolling for is full.")} % elif enrollment_closed: ${_("The course you are enrolling for is closed.")} % elif redeem_code_error: ${_("There was an error processing your redeem code.")} % else: ${_("You're about to activate an enrollment code for {course_name} by {site_name}. " "This code can only be used one time, so you should only activate this code if you're its intended" " recipient.").format(course_name=course.display_name, site_name=site_name) | h} % endif