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
9a752f51
Commit
9a752f51
authored
Jan 11, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubric return, add in score field
parent
7febe2c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
common/lib/xmodule/xmodule/open_ended_module.py
+1
-1
lms/templates/open_ended_rubric.html
+3
-2
No files found.
common/lib/xmodule/xmodule/open_ended_module.py
View file @
9a752f51
...
...
@@ -606,7 +606,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
def
render_rubric
(
self
,
rubric_xml
):
rubric_categories
=
OpenEndedModule
.
extract_rubric_categories
(
rubric_xml
)
html
=
render_to_string
(
'open_ended_rubric.html'
,
rubric_categories
)
html
=
render_to_string
(
'open_ended_rubric.html'
,
{
'rubric_categories'
:
rubric_categories
}
)
return
html
@staticmethod
...
...
lms/templates/open_ended_rubric.html
View file @
9a752f51
<table
class=
"rubric"
>
% for i in range(len(categories)):
<
%
category =
categories[i]
%
>
% for i in range(len(
rubric_
categories)):
<
%
category =
rubric_
categories[i]
%
>
<tr>
<th>
${category['description']}
</th>
<td>
${category['score']}
</td>
% for j in range(len(category['options'])):
<
%
option =
category['options'][j]
%
>
<td>
...
...
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