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
55eba94e
Commit
55eba94e
authored
Jun 04, 2016
by
Douglas Hall
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12659 from edx/release
Merging Hotfix Release 2016-06-03 back to master
parents
efdb84ca
c47a1177
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
5 deletions
+15
-5
lms/djangoapps/instructor/views/api.py
+9
-2
lms/djangoapps/instructor_task/api.py
+1
-1
lms/djangoapps/instructor_task/tasks_helper.py
+1
-1
lms/djangoapps/shoppingcart/views.py
+1
-0
lms/templates/shoppingcart/shopping_cart.html
+3
-1
No files found.
lms/djangoapps/instructor/views/api.py
View file @
55eba94e
...
...
@@ -1240,8 +1240,15 @@ def get_students_features(request, course_id, csv=False): # pylint: disable=red
available_features
=
instructor_analytics
.
basic
.
AVAILABLE_FEATURES
# Allow for microsites to be able to define additional columns (e.g. )
query_features
=
microsite
.
get_value
(
'student_profile_download_fields'
)
# Allow for microsites to be able to define additional columns.
# Note that adding additional columns has the potential to break
# the student profile report due to a character limit on the
# asynchronous job input which in this case is a JSON string
# containing the list of columns to include in the report.
# TODO: Refactor the student profile report code to remove the list of columns
# that should be included in the report from the asynchronous job input.
# We need to clone the list because we modify it below
query_features
=
list
(
microsite
.
get_value
(
'student_profile_download_fields'
,
[]))
if
not
query_features
:
query_features
=
[
...
...
lms/djangoapps/instructor_task/api.py
View file @
55eba94e
...
...
@@ -337,7 +337,7 @@ def submit_calculate_students_features_csv(request, course_key, features):
"""
task_type
=
'profile_info_csv'
task_class
=
calculate_students_features_csv
task_input
=
{
'features'
:
features
}
task_input
=
features
task_key
=
""
return
submit_task
(
request
,
task_type
,
task_class
,
course_key
,
task_input
,
task_key
)
...
...
lms/djangoapps/instructor_task/tasks_helper.py
View file @
55eba94e
...
...
@@ -996,7 +996,7 @@ def upload_students_csv(_xmodule_instance_args, _entry_id, course_id, task_input
task_progress
.
update_task_state
(
extra_meta
=
current_step
)
# compute the student features table and format it
query_features
=
task_input
.
get
(
'features'
)
query_features
=
task_input
student_data
=
enrolled_students_features
(
course_id
,
query_features
)
header
,
rows
=
format_dictlist
(
student_data
,
query_features
)
...
...
lms/djangoapps/shoppingcart/views.py
View file @
55eba94e
...
...
@@ -190,6 +190,7 @@ def show_cart(request):
'form_html'
:
form_html
,
'currency_symbol'
:
settings
.
PAID_COURSE_REGISTRATION_CURRENCY
[
1
],
'currency'
:
settings
.
PAID_COURSE_REGISTRATION_CURRENCY
[
0
],
'enable_bulk_purchase'
:
microsite
.
get_value
(
'ENABLE_SHOPPING_CART_BULK_PURCHASE'
,
True
)
}
return
render_to_response
(
"shoppingcart/shopping_cart.html"
,
context
)
...
...
lms/templates/shoppingcart/shopping_cart.html
View file @
55eba94e
...
...
@@ -101,6 +101,7 @@ from openedx.core.lib.courses import course_image_url
% endif
</div>
<div
class=
"col-2"
>
% if enable_bulk_purchase:
<div
class=
"numbers-row"
aria-live=
"polite"
>
<label
for=
"field_${item.id}"
>
${_('Students:')}
</label>
<div
class=
"counter"
>
...
...
@@ -116,8 +117,9 @@ from openedx.core.lib.courses import course_image_url
</button>
<!--<a name="updateBtn" class="updateBtn hidden" id="updateBtn-${item.id}" href="#">update</a>-->
<span
class=
"error-text hidden"
id=
"students-${item.id}"
></span>
</div>
</div>
% endif
</div>
<div
class=
"col-3"
>
<button
href=
"#"
class=
"btn-remove"
data-item-id=
"${item.id}"
>
...
...
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