When purchasing multiple courses (especially with bundled Program purchase) the donation box shows up multiple times. Donation box should only show once regardless of number of courses purchased. LEARNER-2125
36 lines
1.6 KiB
HTML
36 lines
1.6 KiB
HTML
<%! from django.utils.translation import ugettext as _ %>
|
|
<%page expression_filter="h"/>
|
|
<div class="wrapper-msg urgency-high">
|
|
<div class="msg has-actions">
|
|
<div class="msg-content donate-content">
|
|
<h2 class="sr">${_("Enrollment Successful")}</h2>
|
|
<div class="copy">
|
|
% if enrollments_count == 1:
|
|
<p>${_("Thank you for enrolling in {course_names}. We hope you enjoy the course.").format(course_names=course_names)}</p>
|
|
% else:
|
|
<p>${_("Thank you for enrolling in:")}</p>
|
|
${course_names}
|
|
<p>${_("We hope you enjoy the course.")}</p>
|
|
% endif
|
|
% if allow_donations:
|
|
<p>
|
|
${_("{platform_name} is a nonprofit bringing high-quality education to everyone, everywhere. "
|
|
"Your help allows us to continuously improve the learning experience for millions and "
|
|
"make a better future one learner at a time.").format(platform_name=platform_name)}
|
|
</p>
|
|
% endif
|
|
</div>
|
|
</div>
|
|
% if allow_donations:
|
|
<div class="nav-actions donate-actions">
|
|
<h3 class="sr">${_('Donation Actions')}</h3>
|
|
% if course_id:
|
|
<div class="donate-container" data-course="${ course_id }"></div>
|
|
% else:
|
|
<div class="donate-container"></div>
|
|
% endif
|
|
</div>
|
|
% endif
|
|
</div>
|
|
</div>
|