Commit d4d38827 by cahrens

Updates for showanswer.

parent 47a4d6b6
...@@ -70,11 +70,14 @@ class CapaFields(object): ...@@ -70,11 +70,14 @@ class CapaFields(object):
showanswer = String(display_name="Show Answer", showanswer = String(display_name="Show Answer",
help="Specifies when to show the answer to this problem. A default value can be set course-wide in Advanced Settings.", help="Specifies when to show the answer to this problem. A default value can be set course-wide in Advanced Settings.",
scope=Scope.settings, default="closed", scope=Scope.settings, default="closed",
values=[{"display_name": "Always", "value": "always"}, values=[
{"display_name": "Answered", "value": "answered"}, {"display_name": "Always", "value": "always"},
{"display_name": "Attempted", "value": "attempted"}, {"display_name": "Answered", "value": "answered"},
{"display_name": "Closed", "value": "closed"}, {"display_name": "Attempted", "value": "attempted"},
{"display_name": "Never", "value": "never"}]) {"display_name": "Closed", "value": "closed"},
{"display_name": "Finished", "value": "finished"},
{"display_name": "Past Due", "value": "past_due"},
{"display_name": "Never", "value": "never"}])
force_save_button = Boolean(help="Whether to force the save button to appear on the page", scope=Scope.settings, default=False) force_save_button = Boolean(help="Whether to force the save button to appear on the page", scope=Scope.settings, default=False)
rerandomize = Randomization(display_name="Randomization", help="Specifies whether variable inputs for this problem are randomized each time a student loads the problem. This only applies to problems that have randomly generated numeric variables. A default value can be set course-wide in Advanced Settings.", rerandomize = Randomization(display_name="Randomization", help="Specifies whether variable inputs for this problem are randomized each time a student loads the problem. This only applies to problems that have randomly generated numeric variables. A default value can be set course-wide in Advanced Settings.",
default="always", scope=Scope.settings, values=[{"display_name": "Always", "value": "always"}, default="always", scope=Scope.settings, values=[{"display_name": "Always", "value": "always"},
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
metadata: metadata:
display_name: Circuit Schematic Builder display_name: Circuit Schematic Builder
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
data: | data: |
<problem > <problem >
Please make a voltage divider that splits the provided voltage evenly. Please make a voltage divider that splits the provided voltage evenly.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
metadata: metadata:
display_name: Custom Python-Evaluated Input display_name: Custom Python-Evaluated Input
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
data: | data: |
<problem> <problem>
<p> <p>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
metadata: metadata:
display_name: Blank Common Problem display_name: Blank Common Problem
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
markdown: "" markdown: ""
data: | data: |
<problem> <problem>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
metadata: metadata:
display_name: Blank Advanced Problem display_name: Blank Advanced Problem
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
data: | data: |
<problem> <problem>
</problem> </problem>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
metadata: metadata:
display_name: Math Expression Input display_name: Math Expression Input
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
data: | data: |
<problem> <problem>
<p> <p>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
metadata: metadata:
display_name: Image Mapped Input display_name: Image Mapped Input
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
data: | data: |
<problem> <problem>
<p> <p>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
metadata: metadata:
display_name: Multiple Choice display_name: Multiple Choice
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
weight: "" weight: ""
attempts: "" attempts: ""
markdown: markdown:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
metadata: metadata:
display_name: Numerical Input display_name: Numerical Input
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
markdown: markdown:
"A numerical input problem accepts a line of text input from the "A numerical input problem accepts a line of text input from the
student, and evaluates the input for correctness based on its student, and evaluates the input for correctness based on its
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
metadata: metadata:
display_name: Dropdown display_name: Dropdown
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
markdown: markdown:
"Dropdown problems give a limited set of options for students to respond with, and present those options "Dropdown problems give a limited set of options for students to respond with, and present those options
in a format that encourages them to search for a specific answer rather than being immediately presented in a format that encourages them to search for a specific answer rather than being immediately presented
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
metadata: metadata:
display_name: Text Input display_name: Text Input
rerandomize: never rerandomize: never
showanswer: always showanswer: finished
# Note, the extra newlines are needed to make the yaml parser add blank lines instead of folding # Note, the extra newlines are needed to make the yaml parser add blank lines instead of folding
markdown: markdown:
"A text input problem accepts a line of text from the "A text input problem accepts a line of text from the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment