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
9a53c375
Commit
9a53c375
authored
Jan 22, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use something more visually easy to use for self-assessment.
parent
ba1cd811
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
14 deletions
+28
-14
common/lib/xmodule/xmodule/css/combinedopenended/display.scss
+16
-6
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+3
-2
lms/static/coffee/src/staff_grading/staff_grading.coffee
+1
-1
lms/templates/self_assessment_rubric.html
+8
-5
No files found.
common/lib/xmodule/xmodule/css/combinedopenended/display.scss
View file @
9a53c375
...
@@ -270,12 +270,6 @@ div.result-container, section.open-ended-child {
...
@@ -270,12 +270,6 @@ div.result-container, section.open-ended-child {
background
:
#666
;
background
:
#666
;
color
:
white
;
color
:
white
;
}
}
input
[
type
=
radio
]
:checked
+
label
{
background
:
#666
;
color
:
white
;
}
input
[
class
=
'score-selection'
]
{
display
:
none
;
}
}
}
}
}
...
@@ -645,6 +639,22 @@ section.open-ended-child {
...
@@ -645,6 +639,22 @@ section.open-ended-child {
{
{
margin-bottom
:
1em
;
margin-bottom
:
1em
;
}
}
label
{
margin
:
10px
;
padding
:
5px
;
display
:
inline-block
;
min-width
:
50px
;
background-color
:
#CCC
;
text-size
:
1
.5em
;
}
input
[
type
=
radio
]
:checked
+
label
{
background
:
#666
;
color
:
white
;
}
input
[
class
=
'grade-selection'
]
{
display
:
none
;
}
}
}
}
}
...
...
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
9a53c375
...
@@ -153,7 +153,7 @@ class @CombinedOpenEnded
...
@@ -153,7 +153,7 @@ class @CombinedOpenEnded
find_assessment_elements
:
->
find_assessment_elements
:
->
@
assessment
=
@
$
(
'
select.assessment
'
)
@
assessment
=
@
$
(
'
input[name="grade-selection"]
'
)
find_hint_elements
:
->
find_hint_elements
:
->
@
hint_area
=
@
$
(
'textarea.post_assessment'
)
@
hint_area
=
@
$
(
'textarea.post_assessment'
)
...
@@ -177,7 +177,8 @@ class @CombinedOpenEnded
...
@@ -177,7 +177,8 @@ class @CombinedOpenEnded
save_assessment
:
(
event
)
=>
save_assessment
:
(
event
)
=>
event
.
preventDefault
()
event
.
preventDefault
()
if
@
child_state
==
'assessing'
if
@
child_state
==
'assessing'
data
=
{
'assessment'
:
@
assessment
.
find
(
':selected'
).
text
()}
checked_assessment
=
@
$
(
'input[name="grade-selection"]:checked'
)
data
=
{
'assessment'
:
checked_assessment
.
val
()}
$
.
postWithPrefix
"
#{
@
ajax_url
}
/save_assessment"
,
data
,
(
response
)
=>
$
.
postWithPrefix
"
#{
@
ajax_url
}
/save_assessment"
,
data
,
(
response
)
=>
if
response
.
success
if
response
.
success
@
child_state
=
response
.
state
@
child_state
=
response
.
state
...
...
lms/static/coffee/src/staff_grading/staff_grading.coffee
View file @
9a53c375
...
@@ -421,7 +421,7 @@ class StaffGrading
...
@@ -421,7 +421,7 @@ class StaffGrading
else
if
@
state
==
state_grading
else
if
@
state
==
state_grading
@
ml_error_info_container
.
html
(
@
ml_error_info
)
@
ml_error_info_container
.
html
(
@
ml_error_info
)
meta_list
=
$
(
"<ul>"
)
meta_list
=
$
(
"<ul>"
)
meta_list
.
append
(
"<li><span class='meta-info'>
Pending
- </span>
#{
@
num_pending
}
</li>"
)
meta_list
.
append
(
"<li><span class='meta-info'>
Available
- </span>
#{
@
num_pending
}
</li>"
)
meta_list
.
append
(
"<li><span class='meta-info'>Graded - </span>
#{
@
num_graded
}
</li>"
)
meta_list
.
append
(
"<li><span class='meta-info'>Graded - </span>
#{
@
num_graded
}
</li>"
)
meta_list
.
append
(
"<li><span class='meta-info'>Needed for ML - </span>
#{
Math
.
max
(
@
min_for_ml
-
@
num_graded
,
0
)
}
</li>"
)
meta_list
.
append
(
"<li><span class='meta-info'>Needed for ML - </span>
#{
Math
.
max
(
@
min_for_ml
-
@
num_graded
,
0
)
}
</li>"
)
@
problem_meta_info
.
html
(
meta_list
)
@
problem_meta_info
.
html
(
meta_list
)
...
...
lms/templates/self_assessment_rubric.html
View file @
9a53c375
...
@@ -7,11 +7,14 @@
...
@@ -7,11 +7,14 @@
<div
class=
"scoring-container"
>
<div
class=
"scoring-container"
>
<h3>
Scoring
</h3>
<h3>
Scoring
</h3>
<p>
Please select a score below:
</p>
<p>
Please select a score below:
</p>
<select
name=
"assessment"
class=
"assessment"
>
%for i in xrange(0,max_score+1):
<div
class=
"grade-selection"
>
<option
value=
"${i}"
>
${i}
</option>
%for i in xrange(0,max_score+1):
%endfor
<
%
id =
"score-{0}"
.
format
(
i
)
%
>
</select>
<input
type=
"radio"
class=
"grade-selection"
name=
"grade-selection"
value=
"${i}"
id=
"${id}"
>
<label
for=
"${id}"
>
${i}
</label>
%endfor
</div>
</div>
</div>
% endif
% endif
...
...
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