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
9a4ee350
Commit
9a4ee350
authored
Jan 07, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JS tweaks, move feedback into its own template
parent
f5cd2ff9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
27 deletions
+30
-27
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+5
-4
lms/templates/combined_open_ended_status.html
+1
-1
lms/templates/open_ended.html
+1
-22
lms/templates/open_ended_evaluation.html
+23
-0
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
9a4ee350
...
...
@@ -54,10 +54,10 @@ class @CombinedOpenEnded
@
submit_button
.
show
()
@
reset_button
.
hide
()
@
next_problem_button
.
hide
()
@
skip_button
.
hide
()
@
hint_area
.
attr
(
'disabled'
,
false
)
if
@
child_type
==
"openended"
@
reload_button
.
hide
()
@
skip_button
.
hide
()
if
@
child_state
==
'initial'
@
answer_area
.
attr
(
"disabled"
,
false
)
@
submit_button
.
prop
(
'value'
,
'Submit'
)
...
...
@@ -73,6 +73,7 @@ class @CombinedOpenEnded
if
@
child_type
==
"openended"
@
reload_button
.
hide
()
@
skip_button
.
show
()
@
skip_post_assessment
()
@
answer_area
.
attr
(
"disabled"
,
true
)
@
submit_button
.
prop
(
'value'
,
'Submit post-assessment'
)
if
@
child_type
==
"selfassessment"
...
...
@@ -83,7 +84,8 @@ class @CombinedOpenEnded
@
answer_area
.
attr
(
"disabled"
,
true
)
@
hint_area
.
attr
(
'disabled'
,
true
)
@
submit_button
.
hide
()
@
skip_button
.
hide
()
if
@
child_type
==
"openended"
@
skip_button
.
hide
()
if
@
task_number
<
@
task_count
@
next_problem
()
else
...
...
@@ -149,8 +151,7 @@ class @CombinedOpenEnded
else
@
errors_area
.
html
(
'Problem state got out of sync. Try reloading the page.'
)
skip_post_assessment
:
(
event
)
=>
event
.
preventDefault
()
skip_post_assessment
:
=>
if
@
child_state
==
'post_assessment'
$
.
postWithPrefix
"
#{
@
ajax_url
}
/skip_post_assessment"
,
{},
(
response
)
=>
...
...
lms/templates/combined_open_ended_status.html
View file @
9a4ee350
...
...
@@ -3,7 +3,7 @@
<div
class=
"statusitem"
>
Step ${status['task_number']} (${status['human_state']}) : ${status['score']} / ${status['max_score']}
%if status['type']=="openended":
<div
class=
"collapsible
open-ended-short-feedback
"
>
<div
class=
"collapsible
external-grader-message
"
>
<header>
<a
href=
"#"
>
Show feedback from step ${status['task_number']}
</a>
</header>
...
...
lms/templates/open_ended.html
View file @
9a4ee350
...
...
@@ -32,27 +32,6 @@
<input
name=
"reload"
class=
"reload-button"
type=
"button"
value=
"Recheck for Feedback"
onclick=
"document.location.reload(true);"
/>
<div
class=
"external-grader-message"
>
${msg|n}
% if state == 'post_assessment':
<div
class=
"collapsible evaluation-response"
>
<header>
<a
href=
"#"
>
Respond to Feedback
</a>
</header>
<section
id=
"evaluation_${id}"
class=
"evaluation"
>
<p>
How accurate do you find this feedback?
</p>
<div
class=
"evaluation-scoring"
>
<ul
class=
"scoring-list"
>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-5"
value=
"5"
/>
<label
for=
"evaluation-score-5"
>
Correct
</label></li>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-4"
value=
"4"
/>
<label
for=
"evaluation-score-4"
>
Partially Correct
</label></li>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-3"
value=
"3"
/>
<label
for=
"evaluation-score-3"
>
No Opinion
</label></li>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-2"
value=
"2"
/>
<label
for=
"evaluation-score-2"
>
Partially Incorrect
</label></li>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-1"
value=
"1"
/>
<label
for=
"evaluation-score-1"
>
Incorrect
</label></li>
</ul>
</div>
<p>
Additional comments:
</p>
<textarea
rows=
"${rows}"
cols=
"${cols}"
name=
"feedback_${id}"
class=
"feedback-on-feedback"
id=
"feedback_${id}"
></textarea>
</section>
</div>
% endif
${msg|n}
</div>
</section>
lms/templates/open_ended_evaluation.html
0 → 100644
View file @
9a4ee350
<div
class=
"external-grader-message"
>
${msg|n}
<div
class=
"collapsible evaluation-response"
>
<header>
<a
href=
"#"
>
Respond to Feedback
</a>
</header>
<section
id=
"evaluation_${id}"
class=
"evaluation"
>
<p>
How accurate do you find this feedback?
</p>
<div
class=
"evaluation-scoring"
>
<ul
class=
"scoring-list"
>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-5"
value=
"5"
/>
<label
for=
"evaluation-score-5"
>
Correct
</label></li>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-4"
value=
"4"
/>
<label
for=
"evaluation-score-4"
>
Partially Correct
</label></li>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-3"
value=
"3"
/>
<label
for=
"evaluation-score-3"
>
No Opinion
</label></li>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-2"
value=
"2"
/>
<label
for=
"evaluation-score-2"
>
Partially Incorrect
</label></li>
<li><input
type=
"radio"
name=
"evaluation-score"
id=
"evaluation-score-1"
value=
"1"
/>
<label
for=
"evaluation-score-1"
>
Incorrect
</label></li>
</ul>
</div>
<p>
Additional comments:
</p>
<textarea
rows=
"${rows}"
cols=
"${cols}"
name=
"feedback_${id}"
class=
"feedback-on-feedback"
id=
"feedback_${id}"
></textarea>
</section>
</div>
</div>
\ No newline at end of file
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