<%! 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">
${course.display_number_with_default | h} ${get_course_about_section(course, 'title')} Cover Image
${_("Confirm your enrollment for:")} ${_("course dates")}

${_("{course_name}").format(course_name=course.display_name)} ${_("{start_date}").format(start_date=course.start_datetime_text())} - ${_("{end_date}").format(end_date=course.end_datetime_text())}


% if reg_code_already_redeemed: <% dashboard_url = reverse('dashboard')%>

${_("You've clicked a link for an enrollment code that has already been used." " Check your course dashboard to see if you're enrolled in the course," " or contact your company's administrator.").format(dashboard_url=dashboard_url)}

% 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: <% dashboard_url = reverse('dashboard')%>

${_("You're already enrolled for this course." " Visit your dashboard to see the course.").format(dashboard_url=dashboard_url)}

% elif course_full: <% dashboard_url = reverse('dashboard')%>

${_("The course you are enrolling for is full.")}

% elif enrollment_closed: <% dashboard_url = reverse('dashboard')%>

${_("The course you are enrolling for is closed.")}

% elif redeem_code_error: <% dashboard_url = reverse('dashboard')%>

${_("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)}

% endif
% if not reg_code_already_redeemed: %if redemption_success: <% course_url = reverse('info', args=[course.id.to_deprecated_string()]) %> ${_("View Course")} %elif not registered_for_course:
%endif %endif