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
f5b166f1
Commit
f5b166f1
authored
May 11, 2015
by
marjev
Committed by
Marko Jevtic
May 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(SOL-837) Added RTL support to payment page
parent
225f4426
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
44 additions
and
38 deletions
+44
-38
lms/djangoapps/shoppingcart/tests/test_views.py
+1
-1
lms/djangoapps/shoppingcart/views.py
+1
-3
lms/envs/devstack.py
+21
-13
lms/static/sass/views/_shoppingcart.scss
+0
-0
lms/templates/shoppingcart/cybersource_form.html
+7
-6
lms/templates/shoppingcart/receipt.html
+11
-12
lms/templates/shoppingcart/shopping_cart.html
+0
-0
lms/templates/shoppingcart/shopping_cart_flow.html
+3
-3
No files found.
lms/djangoapps/shoppingcart/tests/test_views.py
View file @
f5b166f1
...
...
@@ -1441,7 +1441,7 @@ class ShoppingcartViewsClosedEnrollment(ModuleStoreTestCase):
self
.
assertIn
(
reg_item1
,
context
[
'shoppingcart_items'
][
0
])
self
.
assertEqual
(
1
,
len
(
context
[
'shoppingcart_items'
]))
self
.
assertEqual
(
True
,
context
[
'is_course_enrollment_closed'
])
self
.
assertIn
(
self
.
testing_course
.
display_name
,
context
[
'
appended_
expired_course_names'
])
self
.
assertIn
(
self
.
testing_course
.
display_name
,
context
[
'expired_course_names'
])
def
test_to_check_that_cart_item_enrollment_is_closed_when_clicking_the_payment_button
(
self
):
self
.
login_user
()
...
...
lms/djangoapps/shoppingcart/views.py
View file @
f5b166f1
...
...
@@ -177,8 +177,6 @@ def show_cart(request):
Order
.
remove_cart_item_from_order
(
expired_item
)
cart
.
update_order_type
()
appended_expired_course_names
=
", "
.
join
(
expired_cart_item_names
)
callback_url
=
request
.
build_absolute_uri
(
reverse
(
"shoppingcart.views.postpay_callback"
)
)
...
...
@@ -188,7 +186,7 @@ def show_cart(request):
'shoppingcart_items'
:
valid_cart_item_tuples
,
'amount'
:
cart
.
total_cost
,
'is_course_enrollment_closed'
:
is_any_course_expired
,
'
appended_expired_course_names'
:
appended_expired_course
_names
,
'
expired_course_names'
:
expired_cart_item
_names
,
'site_name'
:
site_name
,
'form_html'
:
form_html
,
'currency_symbol'
:
settings
.
PAID_COURSE_REGISTRATION_CURRENCY
[
1
],
...
...
lms/envs/devstack.py
View file @
f5b166f1
...
...
@@ -132,19 +132,6 @@ FEATURES['ENABLE_DASHBOARD_SEARCH'] = True
FEATURES
[
'CERTIFICATES_HTML_VIEW'
]
=
True
#####################################################################
# See if the developer has any local overrides.
try
:
from
.private
import
*
# pylint: disable=import-error
except
ImportError
:
pass
#####################################################################
# Lastly, run any migrations, if needed.
MODULESTORE
=
convert_module_store_setting_if_needed
(
MODULESTORE
)
SECRET_KEY
=
'85920908f28904ed733fe576320db18cabd7b6cd'
########################## Course Discovery #######################
FEATURES
[
'ENABLE_COURSE_DISCOVERY'
]
=
True
FEATURES
[
'COURSES_ARE_BROWSEABLE'
]
=
True
...
...
@@ -158,3 +145,24 @@ VERIFY_STUDENT["SOFTWARE_SECURE"] = {
"API_ACCESS_KEY"
:
"BBBBBBBBBBBBBBBBBBBB"
,
"API_SECRET_KEY"
:
"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"
,
}
########################## Shopping cart ##########################
FEATURES
[
'ENABLE_SHOPPING_CART'
]
=
True
FEATURES
[
'STORE_BILLING_INFO'
]
=
True
FEATURES
[
'ENABLE_PAID_COURSE_REGISTRATION'
]
=
True
FEATURES
[
'ENABLE_COSMETIC_DISPLAY_PRICE'
]
=
True
#####################################################################
# See if the developer has any local overrides.
try
:
from
.private
import
*
# pylint: disable=wildcard-import
except
ImportError
:
pass
#####################################################################
# Lastly, run any migrations, if needed.
MODULESTORE
=
convert_module_store_setting_if_needed
(
MODULESTORE
)
SECRET_KEY
=
'85920908f28904ed733fe576320db18cabd7b6cd'
lms/static/sass/views/_shoppingcart.scss
View file @
f5b166f1
This diff is collapsed.
Click to expand it.
lms/templates/shoppingcart/cybersource_form.html
View file @
f5b166f1
<form
action=
"${action}"
method=
"post"
>
% for pk, pv in params.iteritems():
<input
type=
"hidden"
name=
"${pk}"
value=
"${pv}"
/>
% endfor
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<form
action=
"${action}"
method=
"post"
>
% for pk, pv in params.iteritems():
<input
type=
"hidden"
name=
"${pk}"
value=
"${pv}"
aria-hidden=
"true"
/>
% endfor
<i
class=
"icon fa fa-caret-right"
></i><input
type=
"submit"
value=
"Payment"
/
>
</form>
<button
type=
"submit"
>
${_('Payment')}
<i
class=
"icon fa fa-caret-right"
aria-hidden=
"true"
></i></button
>
</form>
lms/templates/shoppingcart/receipt.html
View file @
f5b166f1
...
...
@@ -79,7 +79,7 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
% if reg_code_info['is_redeemed']:
<td>
${reg_code_info['redemption_url']}
</td>
% else:
<td><a
href=
"${reg_code_info['redemption_url']}"
data-base-url=
"${site_name}"
>
${reg_code_info['redemption_url']}
</a></td>
<td><a
class=
"redemption-url"
href=
"${reg_code_info['redemption_url']}"
data-base-url=
"${site_name}"
>
${reg_code_info['redemption_url']}
</a></td>
% endif
<td>
% if reg_code_info['is_redeemed']:
...
...
@@ -304,17 +304,16 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
</span>
</h3>
<h1>
${_(" {course_name} ").format(course_name=course.display_name)}
<span
class=
"pull-right"
>
% if course_start_time:
${course_start_time}
%endif
-
% if course_end_time:
${course_end_time}
%endif
</span>
</h1>
<h1>
${course.display_name}
</h1>
<span
class=
"pull-right"
>
% if course_start_time:
${course_start_time}
%endif
-
% if course_end_time:
${course_end_time}
%endif
</span>
<hr/>
<div
class=
"three-col"
>
% if item.status == "purchased":
...
...
lms/templates/shoppingcart/shopping_cart.html
View file @
f5b166f1
This diff is collapsed.
Click to expand it.
lms/templates/shoppingcart/shopping_cart_flow.html
View file @
f5b166f1
...
...
@@ -12,17 +12,17 @@ from django.utils.translation import ugettext as _
<
%
block
name=
"bodyextra"
>
<div
class=
"container"
>
<
section
class=
"wrapper confirm-enrollment shopping-cart"
>
<
header
class=
"wrapper confirm-enrollment shopping-cart"
>
<h1>
${_("{platform_name} - Shopping Cart").format(platform_name=microsite.get_value('platform_name', settings.PLATFORM_NAME))}
</h1>
% if shoppingcart_items:
<ul
class=
"steps"
>
<ul
class=
"steps"
aria-label=
"${_('Steps')}"
>
<li
<%
block
name=
"review_highlight"
/>
>${_('Review')}
</li>
<
%
block
name=
"billing_details_highlight"
/>
<li
<%
block
name=
"payment_highlight"
/>
>${_('Payment')}
</li>
<li
<%
block
name=
"confirmation_highlight"
/>
>${_('Confirmation')}
</li>
</ul>
%endif
</
section
>
</
header
>
</div>
<
%
block
name=
"custom_content"
/>
...
...
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