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
fa09e25a
Commit
fa09e25a
authored
Jan 04, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add interstitial page between calibration and grading.
Make individual Prompt and Rubric Sections hideable.
parent
befe36f6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
27 deletions
+55
-27
lms/static/coffee/src/peer_grading/peer_grading_problem.coffee
+32
-15
lms/static/sass/course/_staff_grading.scss
+7
-2
lms/templates/peer_grading/peer_grading_problem.html
+16
-10
No files found.
lms/static/coffee/src/peer_grading/peer_grading_problem.coffee
View file @
fa09e25a
...
...
@@ -2,6 +2,7 @@ class PeerGradingProblemBackend
constructor
:
(
ajax_url
,
mock_backend
)
->
@
mock_backend
=
mock_backend
@
ajax_url
=
ajax_url
@
mock_cnt
=
0
post
:
(
cmd
,
data
,
callback
)
->
if
@
mock_backend
...
...
@@ -16,11 +17,12 @@ class PeerGradingProblemBackend
# change to test each version
response
=
success
:
true
calibrated
:
false
calibrated
:
@
mock_cnt
>=
2
else
if
cmd
==
'show_calibration_essay'
#response =
# success: false
# error: "There was an error"
@
mock_cnt
++
response
=
success
:
true
submission_id
:
1
...
...
@@ -58,7 +60,7 @@ The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for t
else
if
cmd
==
'save_calibration_essay'
response
=
success
:
true
correct
_score
:
2
actual
_score
:
2
else
if
cmd
==
'save_grade'
response
=
success
:
true
...
...
@@ -89,6 +91,8 @@ class PeerGradingProblem
@
grading_wrapper
=
$
(
'.grading-wrapper'
)
@
calibration_feedback_panel
=
$
(
'.calibration-feedback'
)
@
interstitial_page
=
$
(
'.interstitial-page'
)
@
interstitial_page
.
hide
()
@
error_container
=
$
(
'.error-container'
)
...
...
@@ -98,10 +102,12 @@ class PeerGradingProblem
@
score_selection_container
=
$
(
'.score-selection-container'
)
@
score
=
null
@
calibration
=
null
@
submit_button
=
$
(
'.submit-button'
)
@
action_button
=
$
(
'.action-button'
)
@
calibration_feedback_button
=
$
(
'.calibration-feedback-button'
)
@
interstitial_page_button
=
$
(
'.interstitial-page-button'
)
Collapsible
.
setCollapsibles
(
@
content_panel
)
@
action_button
.
click
->
document
.
location
.
reload
(
true
)
...
...
@@ -110,6 +116,10 @@ class PeerGradingProblem
@
grading_wrapper
.
show
()
@
is_calibrated_check
()
@
interstitial_page_button
.
click
=>
@
interstitial_page
.
hide
()
@
is_calibrated_check
()
@
is_calibrated_check
()
...
...
@@ -154,12 +164,15 @@ class PeerGradingProblem
calibration_check_callback
:
(
response
)
=>
if
response
.
success
# check whether or not we're still calibrating
if
response
.
calibrated
if
response
.
calibrated
and
(
@
calibration
==
null
or
@
calibration
==
false
)
@
calibration
=
false
@
fetch_submission_essay
()
else
if
response
.
calibrated
and
@
calibration
==
true
@
calibration
=
false
@
render_interstitial_page
()
else
@
fetch_calibration_essay
()
@
calibration
=
true
@
fetch_calibration_essay
()
else
if
response
.
error
@
render_error
(
response
.
error
)
else
...
...
@@ -262,20 +275,24 @@ class PeerGradingProblem
render_calibration_feedback
:
(
response
)
=>
# display correct grade
# display correct grade
#@grading_wrapper.hide()
@
calibration_feedback_panel
.
show
()
calibration_wrapper
=
$
(
'.calibration-feedback-wrapper'
)
calibration_wrapper
.
html
(
"<p>The score you gave was:
#{
@
score
}
. The correct score is:
#{
response
.
correct_score
}
</p>"
)
score
=
parseInt
(
@
score
)
correct_score
=
parseInt
(
response
.
correct_score
)
if
score
==
correct_score
calibration_wrapper
.
append
(
"<p>Congratulations! Your score matches the correct one!</p>"
)
else
calibration_wrapper
.
append
(
"<p>Please try to understand the grading critera better so that you will be more accurate next time.</p>"
)
@
calibration_feedback_panel
.
show
()
calibration_wrapper
=
$
(
'.calibration-feedback-wrapper'
)
calibration_wrapper
.
html
(
"<p>The score you gave was:
#{
@
score
}
. The actual score is:
#{
response
.
actual_score
}
</p>"
)
score
=
parseInt
(
@
score
)
actual_score
=
parseInt
(
response
.
actual_score
)
#TODO: maybe do another variation depending on whether or not students are close to correct
if
score
==
actual_score
calibration_wrapper
.
append
(
"<p>Congratulations! Your score matches the actual one!</p>"
)
else
calibration_wrapper
.
append
(
"<p>Please try to understand the grading critera better so that you will be more accurate next time.</p>"
)
render_interstitial_page
:
()
=>
@
content_panel
.
hide
()
@
interstitial_page
.
show
()
render_error
:
(
error_message
)
=>
@
error_container
.
show
()
@
error_container
.
html
(
error_message
)
...
...
lms/static/sass/course/_staff_grading.scss
View file @
fa09e25a
...
...
@@ -36,8 +36,8 @@ div.peer-grading{
}
}
.prompt-
information-
container
,
.rubric-
wrapp
er
,
.prompt-container
,
.rubric-
contain
er
,
.calibration-feedback-wrapper
,
.grading-container
{
...
...
@@ -103,6 +103,11 @@ div.peer-grading{
padding
:
10px
;
margin
:
0px
;
border
:
1px
solid
black
;
h3
{
text-align
:center
;
text-transform
:uppercase
;
}
}
.calibration-panel
{
...
...
lms/templates/peer_grading/peer_grading_problem.html
View file @
fa09e25a
...
...
@@ -43,23 +43,22 @@
</div>
</div>
<div
class=
"prompt-wrapper collapsible"
>
<header>
<a
href=
"javascript:void(0);"
>
Show Problem Details
</a>
</header>
<section>
<div
class=
"prompt-information-container"
>
<h3>
Question
</h3>
<div
class=
"prompt-wrapper"
>
<div
class=
"prompt-information-container collapsible"
>
<header><a
href=
"javascript:void(0)"
>
View Question
</a></header>
<section>
<div
class=
"prompt-container"
>
</div>
</section>
</div>
<div
class=
"rubric-wrapper"
>
<h3>
Grading Rubric
</h3>
<div
class=
"rubric-wrapper collapsible"
>
<header><a
href=
"javascript:void(0)"
>
View Rubric
</a></header>
<section>
<div
class=
"rubric-container"
>
</div>
</section>
</div>
</section>
</div>
...
...
@@ -96,6 +95,13 @@
</div>
<input
type=
"button"
class=
"calibration-feedback-button"
value=
"Continue"
name=
"calibration-feedback-button"
/>
</section>
<section
class=
"interstitial-page"
>
<h1>
Congratulations!
</h1>
<p>
You have now completed calibration. You are now ready to start grading.
</p>
<input
type=
"button"
class=
"interstitial-page-button"
value=
"Start Grading!"
name=
"interstitial-page-button"
/>
</section>
<input
type=
"button"
value=
"Reload page"
class=
"action-button"
name=
"reload"
/>
</div>
</section>
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