<%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from courseware.courses import course_image_url, get_course_about_section %> <%inherit file="../main.html" /> <%namespace name='static' file='/static_content.html'/> <%block name="pagetitle">${_("Confirm Enrollment")} <%block name="content">
${_(
${_("Confirm your enrollment for:")} ${_("course dates")}

${course.display_name} ${course.start_datetime_text()} - ${course.end_datetime_text()}


% 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=''.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, )}

% elif registered_for_course:

${_( "You're already registered for this course. " "Visit your {link_start}dashboard{link_end} to see the course." ).format( link_start=''.format(url=reverse('dashboard')), link_end='', )}

% 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, )}

% endif
% if not reg_code_already_redeemed: %if redemption_success: ${_("View Dashboard     ▸")} %elif not registered_for_course:
%endif %endif