Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions lib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ use constant FIELD_PROPERTIES => {
},
max_attempts => {
name => x('Max Attempts'),
type => [ -1, undef, 1 ],
type => 'edit',
size => 6,
override => 'any',
default => '-1',
Expand All @@ -493,10 +493,10 @@ use constant FIELD_PROPERTIES => {
},
showMeAnother => {
name => x('Show Me Another'),
type => [ -2, undef, 1 ],
type => 'edit',
size => '6',
override => 'any',
default => '-1',
default => '-2',
labels => {
'-1' => x('Never'),
'-2' => x('Course Default'),
Expand All @@ -509,7 +509,7 @@ use constant FIELD_PROPERTIES => {
},
showHintsAfter => {
name => x('Show Hints After'),
type => [ -2, undef, 1 ],
type => 'edit',
size => '6',
override => 'any',
default => '-2',
Expand All @@ -526,7 +526,7 @@ use constant FIELD_PROPERTIES => {
},
prPeriod => {
name => x('Rerandomize After'),
type => [ -1, undef, 1 ],
type => 'edit',
size => '6',
override => 'any',
default => '-1',
Expand Down Expand Up @@ -606,7 +606,7 @@ use constant FIELD_PROPERTIES => {
},
att_to_open_children => {
name => x('Attempt Threshold for Children'),
type => [ -1, undef, 1 ],
type => 'edit',
size => 6,
override => 'any',
default => '0',
Expand Down Expand Up @@ -960,10 +960,9 @@ sub fieldHTML ($c, $userID, $setID, $problemID, $globalRecord, $userRecord, $fie
} elsif ($number) {
$input = $c->number_field(
@field_args,
min => ($properties{type}[0] || 0),
max => ($properties{type}[1] || undef),
step => ($properties{type}[2] || 1),
placeholder => $value,
min => ($properties{type}[0] || 0),
max => ($properties{type}[1] || undef),
step => ($properties{type}[2] || 1),
$forUsers && $canOverride ? (placeholder => $c->maketext('Set Default')) : ()
);
} else {
Expand Down