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
1c5c54c8
Commit
1c5c54c8
authored
Feb 01, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the rubric for self-assessment selectable and remove the
separate grade selection.
parent
68fc794a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
21 deletions
+4
-21
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+3
-3
common/lib/xmodule/xmodule/self_assessment_module.py
+1
-1
lms/static/coffee/src/peer_grading/peer_grading_problem.coffee
+0
-1
lms/templates/self_assessment_rubric.html
+0
-16
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
1c5c54c8
...
...
@@ -208,9 +208,9 @@ class @CombinedOpenEnded
save_assessment
:
(
event
)
=>
event
.
preventDefault
()
if
@
child_state
==
'assessing'
checked_assessment
=
@
$
(
'input[name="grade-selection"]:checked'
)
data
=
{
'assessment'
:
checked_assessment
.
val
()
}
if
@
child_state
==
'assessing'
&&
Rubric
.
check_complete
()
checked_assessment
=
Rubric
.
get_total_score
(
)
data
=
{
'assessment'
:
checked_assessment
}
$
.
postWithPrefix
"
#{
@
ajax_url
}
/save_assessment"
,
data
,
(
response
)
=>
if
response
.
success
@
child_state
=
response
.
state
...
...
common/lib/xmodule/xmodule/self_assessment_module.py
View file @
1c5c54c8
...
...
@@ -122,7 +122,7 @@ class SelfAssessmentModule(openendedchild.OpenEndedChild):
if
self
.
state
==
self
.
INITIAL
:
return
''
rubric_renderer
=
CombinedOpenEndedRubric
(
system
,
Tru
e
)
rubric_renderer
=
CombinedOpenEndedRubric
(
system
,
Fals
e
)
rubric_html
=
rubric_renderer
.
render_rubric
(
self
.
rubric
)
# we'll render it
...
...
lms/static/coffee/src/peer_grading/peer_grading_problem.coffee
View file @
1c5c54c8
...
...
@@ -426,7 +426,6 @@ class PeerGradingProblem
@
submit_button
.
show
()
setup_score_selection
:
(
max_score
)
=>
# And now hook up an event handler again
$
(
"input[name='score-selection']"
).
change
@
graded_callback
...
...
lms/templates/self_assessment_rubric.html
View file @
1c5c54c8
...
...
@@ -2,20 +2,4 @@
<div
class=
"rubric"
>
${rubric | n }
</div>
% if not read_only:
<div
class=
"scoring-container"
>
<h3>
Scoring
</h3>
<p>
Please select a score below:
</p>
<div
class=
"grade-selection"
>
%for i in xrange(0,max_score+1):
<
%
id =
"score-{0}"
.
format
(
i
)
%
>
<input
type=
"radio"
class=
"grade-selection"
name=
"grade-selection"
value=
"${i}"
id=
"${id}"
>
<label
for=
"${id}"
>
${i}
</label>
%endfor
</div>
</div>
% endif
</div>
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