Use min, max, and step values from server.

This commit is contained in:
cahrens
2013-05-14 14:20:10 -04:00
parent 5bd0442ffb
commit 17750a7d6d
4 changed files with 35 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ class CapaFields(object):
seed = StringyInteger(help="Random seed for this student", scope=Scope.user_state)
weight = StringyFloat(display_name="Problem Weight",
help="Specifies the number of points the problem is worth. If unset, each response field in the problem is worth one point.",
values = {"min" : 0 },
values = {"min" : 0 , "step": ".1"},
scope=Scope.settings)
markdown = String(help="Markdown source of this module", scope=Scope.settings)
source_code = String(help="Source code for LaTeX and Word problems. This feature is not well-supported.",