diff --git a/CHANGELOG.rst b/CHANGELOG.rst index aaafb16b04..374e95662d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,9 @@ These are notable changes in edx-platform. This is a rolling list of changes, in roughly chronological order, most recent first. Add your entries at or near the top. Include a label indicating the component affected. +Blades: Add template that displays the most up-to-date features of +drag-and-drop. BLD-479. + Blades: LTI additional Python tests. LTI fix bug e-reader error when popping out window. BLD-465. diff --git a/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml index 678b75716b..6f087763df 100644 --- a/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml +++ b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml @@ -4,7 +4,7 @@ metadata: markdown: !!null data: | - Here's an example of a "Drag and Drop" question set. Click and drag each word in the scrollbar below, up to the numbered bucket which matches the number of letters in the word. + Here's an example of a "Drag and Drop" question set. Click and drag each word in the scrollbar below, up to the numbered bucket which matches the number of letters in the word. @@ -32,6 +32,38 @@ data: | '3': [[550, 150], 121], '5': [[550, 150], 121], '10': [[550, 150], 121]} + if draganddrop.grade(submission[0], correct_answer): + correct = ['correct'] + else: + correct = ['incorrect'] + + + + +

Drag and Drop with Outline

+

Please label hydrogen atoms connected with left carbon atom.

+
+ + + + + + + + + + + + + + + + + correct_answer = [{ + 'draggables': ['1', '2'], + 'targets': ['t2', 't3', 't4' ], + 'rule':'anyof' + }] if draganddrop.grade(submission[0], correct_answer): correct = ['correct'] else: