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
fea40ce1
Commit
fea40ce1
authored
Aug 17, 2016
by
muhammad-ammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update default templates for unsupported responsetypes
parent
993cf9cd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
21 deletions
+18
-21
common/lib/xmodule/xmodule/templates/problem/circuitschematic.yaml
+2
-2
common/lib/xmodule/xmodule/templates/problem/customgrader.yaml
+2
-2
common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml
+1
-1
common/lib/xmodule/xmodule/templates/problem/jsinput_response.yaml
+1
-1
common/lib/xmodule/xmodule/templates/problem/latex_problem.yaml
+7
-10
common/lib/xmodule/xmodule/templates/problem/problem_with_hint.yaml
+1
-1
common/lib/xmodule/xmodule/templates/problem/problem_with_hint_in_latex.yaml
+4
-4
No files found.
common/lib/xmodule/xmodule/templates/problem/circuitschematic.yaml
View file @
fea40ce1
...
...
@@ -22,7 +22,7 @@ data: |
<p>You can use the following example problems as models.</p>
<schematicresponse>
<
label>Make a voltage divider that splits the provided voltage evenly.</label
>
<
p>Make a voltage divider that splits the provided voltage evenly.</p
>
<center>
<schematic height="500" width="600" parts="g,r" analyses="dc"
initial_value="[["v",[168,144,0],{"value":"dc(1)","_json_":0},["1","0"]],["r",[296,120,0],{"r":"1","_json_":1},["1","output"]],["L",[296,168,3],{"label":"output","_json_":2},["output"]],["w",[296,216,168,216]],["w",[168,216,168,192]],["w",[168,144,168,120]],["w",[168,120,296,120]],["g",[168,216,0],{"_json_":7},["0"]],["view",-67.49999999999994,-78.49999999999994,1.6000000000000003,"50","10","1G",null,"100","1","1000"]]"/>
...
...
@@ -53,7 +53,7 @@ data: |
</schematicresponse>
<schematicresponse>
<
label>Make a high-pass filter.</label
>
<
p>Make a high-pass filter.</p
>
<center>
<schematic height="500" width="600" parts="g,r,s,c" analyses="ac"
submit_analyses="{"ac":[["NodeA",1,9]]}"
...
...
common/lib/xmodule/xmodule/templates/problem/customgrader.yaml
View file @
fea40ce1
...
...
@@ -40,7 +40,7 @@ data: |
return test_add(10, ans)
</script>
<
label>Enter two integers that sum to 10.</label
>
<
p>Enter two integers that sum to 10.</p
>
<textline size="40" correct_answer="3"/><br/>
<textline size="40" correct_answer="7"/>
<solution>
...
...
@@ -63,7 +63,7 @@ data: |
return False
</script>
<
label>Enter two integers that sum to 20.</label
>
<
p>Enter two integers that sum to 20.</p
>
<textline size="40" correct_answer="11"/><br/>
<textline size="40" correct_answer="9"/>
<solution>
...
...
common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml
View file @
fea40ce1
...
...
@@ -18,7 +18,7 @@ data: |
and other values that apply.</p>
<p>You can use the following example problem as a model.</p>
<imageresponse>
<
label>What country is home to the Great Pyramid of Giza as well as the cities of Cairo and Memphis? Click the country on the map below.</label
>
<
p>What country is home to the Great Pyramid of Giza as well as the cities of Cairo and Memphis? Click the country on the map below.</p
>
<imageinput src="https://studio.edx.org/c4x/edX/DemoX/asset/Africa.png" width="600" height="638" rectangle="(338,98)-(412,168)" alt="Map of Africa"/>
<solution>
<div class="detailed-solution">
...
...
common/lib/xmodule/xmodule/templates/problem/jsinput_response.yaml
View file @
fea40ce1
...
...
@@ -58,7 +58,7 @@ data: |
'''
]]>
</script>
<
label>In the following image, click the objects until the cone is yellow and the cube is blue.</label
>
<
p>In the following image, click the objects until the cone is yellow and the cube is blue.</p
>
<jsinput gradefn="WebGLDemo.getGrade"
get_statefn="WebGLDemo.getState"
set_statefn="WebGLDemo.setState"
...
...
common/lib/xmodule/xmodule/templates/problem/latex_problem.yaml
View file @
fea40ce1
...
...
@@ -138,7 +138,7 @@ data: |
<p><strong>Example Math Expression Problem</strong></p>
<symbolicresponse expect="m*c^2">
<
label>What is Einstein's equation for the energy equivalent of a mass [mathjaxinline]m[/mathjaxinline]?</label
>
<
p>What is Einstein's equation for the energy equivalent of a mass [mathjaxinline]m[/mathjaxinline]?</p
>
<textline size="90" correct_answer="m*c^2" math="1"/>
</symbolicresponse>
<br/>
...
...
@@ -146,11 +146,8 @@ data: |
<p><strong>Example Numerical Problem</strong></p>
<numericalresponse inline="1" answer="0.52">
<label>Estimate the energy savings (in J/y) if all the people ([mathjaxinline]3\times 10^8[/mathjaxinline]) in the U. S. switched from U. S. code to low-flow shower heads.</label>
<p style="display:inline">Energy saved = </p>
<textline inline="1">
<responseparam type="tolerance" default="0.02"/>
</textline>
<p style="display:inline"> EJ/year</p>
<formulaequationinput trailing_text="EJ/year" />
<responseparam type="tolerance" default="0.02"/>
</numericalresponse>
<br/>
...
...
@@ -176,7 +173,7 @@ data: |
def test_add_to_ten(expect, ans):
return test_add(10, ans)
</script>
<
label>Enter two integers that sum to 10.</label
>
<
p>Enter two integers that sum to 10.</p
>
<textline size="40" correct_answer="3"/><br/>
<textline size="40" correct_answer="7"/>
<solution>
...
...
@@ -197,7 +194,7 @@ data: |
except ValueError:
return False
</script>
<
label>Enter two integers that sum to 20.</label
>
<
p>Enter two integers that sum to 20.</p
>
<textline size="40" correct_answer="11"/><br/>
<textline size="40" correct_answer="9"/>
<solution>
...
...
@@ -213,10 +210,10 @@ data: |
<p><strong>Example Image Mapped Input Problem</strong></p>
<imageresponse>
<
label
>
<
p
>
What country is home to the Great Pyramid of Giza as well as the cities
of Cairo and Memphis? Click the country on the map below.
</
label
>
</
p
>
<imageinput src="https://studio.edx.org/c4x/edX/DemoX/asset/Africa.png"
width="600" height="638" rectangle="(338,98)-(412,168)" alt="Map of
Africa"/>
...
...
common/lib/xmodule/xmodule/templates/problem/problem_with_hint.yaml
View file @
fea40ce1
...
...
@@ -35,7 +35,7 @@ data: |
hint = "<font color='blue'>Hint: {0}</font>".format(hint)
new_cmap.set_hint_and_mode(aid,hint,'always')
</script>
<
label>What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.</label
>
<
p>What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.</p
>
<textline correct_answer="python"/>
<hintgroup hintfn="hint_fn"/>
</customresponse>
...
...
common/lib/xmodule/xmodule/templates/problem/problem_with_hint_in_latex.yaml
View file @
fea40ce1
...
...
@@ -52,7 +52,7 @@ data: |
<text>
<p><h4>Problem With Adaptive Hint</h4></p>
<p>This problem demonstrates a question with hints, based on using the <tt class="tt">hintfn</tt> method.</p>
<customresponse cfn="test_str" expect="python">
<script type="text/python" system_path="python_lib">
def test_str(expect, ans):
...
...
@@ -80,9 +80,9 @@ data: |
hint = "<font color='blue'>Hint: {0}</font>".format(hint)
new_cmap.set_hint_and_mode(aid,hint,'always')
</script>
<
label>What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.</label
>
<textline correct_answer="python"/>
<hintgroup hintfn="hint_fn"/>
<
p>What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.</p
>
<textline correct_answer="python"/>
<hintgroup hintfn="hint_fn"/>
</customresponse>
</text>
</problem>
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