Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
fe1d2449
Commit
fe1d2449
authored
Dec 29, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Respond to review comments
parent
90e4de5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
29 deletions
+26
-29
lms/djangoapps/shoppingcart/models.py
+4
-4
lms/templates/shoppingcart/receipt.html
+22
-25
No files found.
lms/djangoapps/shoppingcart/models.py
View file @
fe1d2449
...
...
@@ -1020,11 +1020,11 @@ class PaidCourseRegistration(OrderItem):
Basically tells the user to visit the dashboard to see their new classes
"""
notification
=
_
(
"Please visit your {link_start}dashboard{link_end} "
"to see your new course."
u
"Please visit your {link_start}dashboard{link_end} "
u
"to see your new course."
)
.
format
(
link_start
=
'<a href="{url}">'
.
format
(
url
=
reverse
(
'dashboard'
)),
link_end
=
'</a>'
,
link_start
=
u
'<a href="{url}">'
.
format
(
url
=
reverse
(
'dashboard'
)),
link_end
=
u
'</a>'
,
)
return
self
.
pk_with_subclass
,
set
([
notification
])
...
...
lms/templates/shoppingcart/receipt.html
View file @
fe1d2449
...
...
@@ -21,7 +21,7 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
<div
class=
"message-left"
>
<
%
courses_url =
reverse('courses')
%
>
% if receipt_has_donation_item:
<b>
${_("Thank you for your
P
urchase!")}
</b>
<b>
${_("Thank you for your
p
urchase!")}
</b>
% for inst in instructions:
${inst}
% endfor
...
...
@@ -31,35 +31,32 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
<
%
dashboard_url =
reverse('dashboard')
%
>
<a
href=
"${dashboard_url}"
class=
"blue pull-right"
>
${_("View Dashboard")}
<i
class=
"icon-caret-right"
></i></a>
<span
class=
"mt-7"
>
${_("You have successfully been enrolled for {course_names}. "
"The following receipt has been emailed to {receipient_emails}").format(
course_names="
<b>
{course_names}
</b>
".format(
${_(
u
"You have successfully been enrolled for {course_names}. "
u
"The following receipt has been emailed to {receipient_emails}").format(
course_names=
u
"
<b>
{course_names}
</b>
".format(
course_names=appended_course_names
),
receipient_emails="
<strong>
{receipient_emails}
</strong>
".format(
receipient_emails=
u
"
<strong>
{receipient_emails}
</strong>
".format(
receipient_emails=appended_recipient_emails
),
)}
</span>
% elif order_type == 'business':
${_("You have successfully purchased {items} for {course_names}. "
"The following receipt has been emailed to {receipient_emails}"
).format(
items="
<b>
{items}
</b>
".format(
items=ungettext(
"{number} course registration code",
"{number} course registration codes",
total_registration_codes
).format(number=total_registration_codes)
),
course_names="
<b>
{course_names}
</b>
".format(
course_names=appended_course_names
),
receipient_emails="
<strong>
{receipient_emails}
</strong>
".format(
receipient_emails=appended_recipient_emails,
)
${ungettext(
"You have successfully purchased
<b>
{number} course registration code
</b>
for {course_names}.",
"You have successfully purchased
<b>
{number} course registration codes
</b>
for {course_names}.",
total_registration_codes
).format(
number=total_registration_codes,
course_names=u"
<b>
{course_names}
</b>
".format(
course_names=appended_course_names
)
}
)}
${_("The following receipt has been emailed to {receipient_emails}").format(
receipient_emails=u"
<strong>
{receipient_emails}
</strong>
".format(
receipient_emails=appended_recipient_emails,
)
)}
% endif
</div>
...
...
@@ -136,7 +133,7 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
<b>
${_('Company Contact Name')}:
</b>
<label>
% if order.company_contact_name:
${
order.company_contact_name
}
${
order.company_contact_name
}
% else:
N/A
% endif
...
...
@@ -148,7 +145,7 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
<b>
${_('Company Contact Email')}:
</b>
<label>
% if order.company_contact_email:
${
order.company_contact_email
}
${
order.company_contact_email
}
% else:
N/A
% endif
...
...
@@ -160,7 +157,7 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
<b>
${_('Recipient Name')}:
</b>
<label>
% if order.recipient_name:
${
order.recipient_name
}
${
order.recipient_name
}
% else:
N/A
% endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment