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
6bdbbb62
Commit
6bdbbb62
authored
May 20, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish up editor, fix issues
parent
d4b54cec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
3 deletions
+34
-3
common/lib/xmodule/xmodule/js/src/combinedopenended/edit.coffee
+4
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+2
-2
common/lib/xmodule/xmodule/templates/combinedopenended/default.yaml
+28
-0
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/edit.coffee
View file @
6bdbbb62
...
...
@@ -109,7 +109,7 @@ class @OpenEndedMarkdownEditingDescriptor extends XModule.Descriptor
@
element
.
off
(
'click'
,
'.cheatsheet-toggle'
,
@
toggleCheatsheet
)
if
@
current_editor
==
@
markdown_editor
{
data
:
MarkdownEditingDescriptor
.
markdownToXml
(
@
markdown_editor
.
getValue
())
data
:
OpenEnded
MarkdownEditingDescriptor
.
markdownToXml
(
@
markdown_editor
.
getValue
())
metadata
:
markdown
:
@
markdown_editor
.
getValue
()
}
...
...
@@ -169,6 +169,9 @@ class @OpenEndedMarkdownEditingDescriptor extends XModule.Descriptor
groupString
+=
"
\n
</option>
\n
"
;
}
}
if
(
i
==
options
.
length
-
1
){
groupString
+=
"
\n
</category>
\n
"
;
}
}
groupString
+=
'</rubric>
\n
</rubric>
\n
'
;
return
groupString
;
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
View file @
6bdbbb62
...
...
@@ -847,8 +847,8 @@ class CombinedOpenEndedV1Descriptor():
if
len
(
xml_object
.
xpath
(
child
))
==
0
:
#This is a staff_facing_error
raise
ValueError
(
"Combined Open Ended definition must include at least one '{0}' tag. Contact the learning sciences group for assistance."
.
format
(
child
))
"Combined Open Ended definition must include at least one '{0}' tag. Contact the learning sciences group for assistance.
{1}
"
.
format
(
child
,
xml_object
))
def
parse_task
(
k
):
"""Assumes that xml_object has child k"""
...
...
common/lib/xmodule/xmodule/templates/combinedopenended/default.yaml
View file @
6bdbbb62
...
...
@@ -10,6 +10,34 @@ metadata:
markdown
:
"
"
data
:
|
<combinedopenended>
<rubric>
<rubric>
<category>
<description>Category 1</description>
<option>
The response does not incorporate what is needed for a one response.
</option>
<option>
The response is correct for category 1.
</option>
</category>
</rubric>
</rubric>
<prompt>
<p>Why is the sky blue?</p>
</prompt>
<task>
<selfassessment/>
</task>
<task>
<openended min_score_to_attempt="1" max_score_to_attempt="2">
<openendedparam>
<initial_display>Enter essay here.</initial_display>
<answer_display>This is the answer.</answer_display>
<grader_payload>{"grader_settings" : "peer_grading.conf", "problem_id" : "700x/Demo"}</grader_payload>
</openendedparam>
</openended>
</task>
</combinedopenended>
children
:
[]
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