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
3bf532e1
Commit
3bf532e1
authored
Jan 08, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check marks in each step
parent
5150d6cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
10 deletions
+40
-10
common/lib/xmodule/xmodule/css/combinedopenended/display.scss
+29
-0
common/lib/xmodule/xmodule/openendedchild.py
+2
-2
lms/templates/combined_open_ended_status.html
+9
-8
No files found.
common/lib/xmodule/xmodule/css/combinedopenended/display.scss
View file @
3bf532e1
...
...
@@ -67,6 +67,35 @@ section.combined-open-ended-status {
font-size
:
1em
;
padding-top
:
10px
;
}
span
{
&
.unanswered
{
@include
inline-block
();
background
:
url('../images/unanswered-icon.png')
center
center
no-repeat
;
height
:
14px
;
position
:
relative
;
width
:
14px
;
float
:
right
;
}
&
.correct
{
@include
inline-block
();
background
:
url('../images/correct-icon.png')
center
center
no-repeat
;
height
:
20px
;
position
:
relative
;
width
:
25px
;
float
:
right
;
}
&
.incorrect
{
@include
inline-block
();
background
:
url('../images/incorrect-icon.png')
center
center
no-repeat
;
height
:
20px
;
width
:
20px
;
position
:
relative
;
float
:
right
;
}
}
}
div
.result-container
{
...
...
common/lib/xmodule/xmodule/openendedchild.py
View file @
3bf532e1
...
...
@@ -258,9 +258,9 @@ class OpenEndedChild():
return
correct
def
is_last_response_correct
(
self
):
score
=
self
.
get_score
()
score
=
self
.
get_score
()
[
'score'
]
correctness
=
'correct'
if
self
.
is_submission_correct
(
score
)
else
'incorrect'
return
return
correctness
lms/templates/combined_open_ended_status.html
View file @
3bf532e1
...
...
@@ -8,15 +8,16 @@
%endif
Step ${status['task_number']} (${status['human_state']}) : ${status['score']} / ${status['max_score']}
% if stat
e
== 'initial':
<span
class=
"unanswered"
style=
"display:inline;"
id=
"status_${id}"
>
Unanswered
</span>
% elif stat
e in ['done', 'post_assessment'] and correct
== 'correct':
<span
class=
"correct"
id=
"status
_${id}"
>
Correct
</span>
% elif stat
e in ['done', 'post_assessment'] and correct
== 'incorrect':
<span
class=
"incorrect"
id=
"status
_${id}"
>
Incorrect
</span>
% elif stat
e
== 'assessing':
<span
class=
"grading"
id=
"status
_${id}"
>
Submitted for grading
</span>
% if stat
us['state']
== 'initial':
<span
class=
"unanswered"
id=
"status"
>
</span>
% elif stat
us['state'] in ['done', 'post_assessment'] and status['correct']
== 'correct':
<span
class=
"correct"
id=
"status
"
>
</span>
% elif stat
us['state'] in ['done', 'post_assessment'] and status['correct']
== 'incorrect':
<span
class=
"incorrect"
id=
"status
"
>
</span>
% elif stat
us['state']
== 'assessing':
<span
class=
"grading"
id=
"status
"
>
</span>
% endif
%if status['type']=="openended" and status['state'] in ['done', 'post_assessment']:
<div
class=
"show-results"
>
<a
href=
"#"
class=
"show-results-button"
>
Show results from step ${status['task_number']}
</a>
...
...
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