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
aa090062
Commit
aa090062
authored
Aug 02, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide and show multiple rubrics
parent
5da5d556
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
18 deletions
+20
-18
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+4
-0
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+14
-16
lms/templates/combinedopenended/combined_open_ended_results.html
+2
-2
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
aa090062
...
...
@@ -569,6 +569,10 @@ class @CombinedOpenEnded
@
question_header
.
text
(
new_text
)
return
false
hide_rubrics
:
()
=>
@
$
(
combined_rubric_sel
+
' > [data-status="hidden"]'
).
hide
()
@
$
(
combined_rubric_sel
+
' > [data-status="shown"]'
).
show
()
prompt_show
:
()
=>
if
@
prompt_container
.
is
(
":hidden"
)
==
true
@
prompt_container
.
slideToggle
()
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
View file @
aa090062
...
...
@@ -506,22 +506,20 @@ class CombinedOpenEndedV1Module():
for
i
in
xrange
(
0
,
loop_up_to_task
):
response
=
self
.
get_last_response
(
i
)
rubric_scores
=
None
if
len
(
response
[
'rubric_scores'
])
>
0
and
response
[
'grader_types'
][
0
]
in
HUMAN_GRADER_TYPE
.
keys
():
rubric_scores
=
[
response
[
'rubric_scores'
]]
grader_types
=
None
if
len
(
response
[
'grader_types'
])
>
0
and
response
[
'grader_types'
][
0
]
in
HUMAN_GRADER_TYPE
.
keys
():
grader_types
=
[
response
[
'grader_types'
]]
feedback_items
=
None
if
len
(
response
[
'feedback_items'
])
>
0
and
response
[
'grader_types'
][
0
]
in
HUMAN_GRADER_TYPE
.
keys
():
feedback_items
=
[
response
[
'feedback_items'
]]
if
feedback_items
is
not
None
and
grader_types
is
not
None
and
rubric_scores
is
not
None
:
rubric_html
=
self
.
rubric_renderer
.
render_combined_rubric
(
stringify_children
(
self
.
static_data
[
'rubric'
]),
rubric_scores
,
grader_types
,
feedback_items
)
contexts
.
append
({
'result'
:
rubric_html
,
'task_name'
:
'Scored rubric'
})
score_length
=
len
(
response
[
'grader_types'
])
log
.
info
(
response
)
for
z
in
xrange
(
0
,
score_length
):
if
response
[
'grader_types'
][
z
]
in
HUMAN_GRADER_TYPE
.
keys
():
rubric_scores
=
[[
response
[
'rubric_scores'
][
z
]]]
grader_types
=
[[
response
[
'grader_types'
][
z
]]]
feedback_items
=
[[
response
[
'feedback_items'
][
z
]]]
rubric_html
=
self
.
rubric_renderer
.
render_combined_rubric
(
stringify_children
(
self
.
static_data
[
'rubric'
]),
rubric_scores
,
grader_types
,
feedback_items
)
contexts
.
append
({
'result'
:
rubric_html
,
'task_name'
:
'Scored rubric'
})
context
=
{
'results'
:
contexts
,
...
...
lms/templates/combinedopenended/combined_open_ended_results.html
View file @
aa090062
...
...
@@ -2,9 +2,9 @@
% if 'task_name' in result and 'result' in result:
<div
class=
"combined-rubric-container"
%
if
i
>
0:
status="shown
">
data-status="shown" data-number="${i}
">
% else:
status="hidden
">
data-status="hidden" data-number="${i}
">
% endif
<h4>
${result['task_name']} from grader ${i+1}
<a
class=
"rubric-collapse"
href=
"#"
>
(Hide)
</a></h4>
${result['result'] | n}
...
...
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