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
d3454e58
Commit
d3454e58
authored
Sep 09, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undo some of the hacks to make receipt rendering work.
parent
ec3db3ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
54 deletions
+0
-54
lms/djangoapps/shoppingcart/models.py
+0
-4
lms/djangoapps/shoppingcart/views.py
+0
-2
lms/templates/shoppingcart/receipt.html
+0
-48
No files found.
lms/djangoapps/shoppingcart/models.py
View file @
d3454e58
...
...
@@ -381,10 +381,6 @@ class CertificateItem(OrderItem):
return
super
(
CertificateItem
,
self
)
.
single_item_receipt_template
@property
def
single_item_receipt_context
(
self
):
return
{
"course_name"
:
course_from_id
(
self
.
course_id
)
.
display_name
}
@property
def
additional_instruction_text
(
self
):
return
textwrap
.
dedent
(
_
(
"Note - you have up to 2 weeks into the course to unenroll from the Verified Certificate option
\
...
...
lms/djangoapps/shoppingcart/views.py
View file @
d3454e58
...
...
@@ -109,11 +109,9 @@ def show_receipt(request, ordernum):
'order'
:
order
,
'order_items'
:
order_items
,
'any_refunds'
:
any_refunds
,
'course_name'
:
""
,
}
if
order_items
.
count
()
==
1
:
receipt_template
=
order_items
[
0
]
.
single_item_receipt_template
context
.
update
(
order_items
[
0
]
.
single_item_receipt_context
)
return
render_to_response
(
receipt_template
,
context
)
lms/templates/shoppingcart/receipt.html
View file @
d3454e58
...
...
@@ -18,54 +18,6 @@
<div
class=
"container"
>
<section
class=
"wrapper cart-list"
>
<
%
include
file=
"/verify_student/_verification_header.html"
args=
"course_name=course_name"
/>
<div
class=
"wrapper-progress"
>
<section
class=
"progress"
>
<h3
class=
"sr title"
>
${_("Your Progress")}
</h3>
<ol
class=
"progress-steps"
>
<li
class=
"progress-step is-current"
id=
"progress-step0"
>
<span
class=
"wrapper-step-number"
><span
class=
"step-number"
>
0
</span></span>
<span
class=
"step-name"
><span
class=
"sr"
>
${_("Current Step: ")}
</span>
${_("Intro")}
</span>
</li>
<li
class=
"progress-step"
id=
"progress-step1"
>
<span
class=
"wrapper-step-number"
><span
class=
"step-number"
>
1
</span></span>
<span
class=
"step-name"
>
${_("Take Photo")}
</span>
</li>
<li
class=
"progress-step"
id=
"progress-step2"
>
<span
class=
"wrapper-step-number"
><span
class=
"step-number"
>
2
</span></span>
<span
class=
"step-name"
>
${_("Take ID Photo")}
</span>
</li>
<li
class=
"progress-step"
id=
"progress-step3"
>
<span
class=
"wrapper-step-number"
><span
class=
"step-number"
>
3
</span></span>
<span
class=
"step-name"
>
${_("Review")}
</span>
</li>
<li
class=
"progress-step"
id=
"progress-step4"
>
<span
class=
"wrapper-step-number"
><span
class=
"step-number"
>
4
</span></span>
<span
class=
"step-name"
>
${_("Make Payment")}
</span>
</li>
<li
class=
"progress-step progress-step-icon"
id=
"progress-step5"
>
<span
class=
"wrapper-step-number"
><span
class=
"step-number"
>
<i
class=
"icon-ok"
></i>
</span></span>
<span
class=
"step-name"
>
${_("Confirmation")}
</span>
</li>
</ol>
<span
class=
"progress-sts"
>
<span
class=
"progress-sts-value"
></span>
</span>
</section>
</div>
<div
class=
"wrapper-content-main"
>
<article
class=
"content-main"
>
<h3
class=
"title"
>
${_(settings.PLATFORM_NAME + " (" + settings.SITE_NAME + ")" + " Electronic Receipt")}
</h3>
...
...
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