--- loncom/html/adm/helper/parameter.helper 2003/09/29 16:33:41 1.6 +++ loncom/html/adm/helper/parameter.helper 2009/07/08 17:55:07 1.18 @@ -26,9 +26,11 @@ -

This helper will assist you in setting the open, - due, and answer dates for problems, or in - setting the number of tries for problems.

+ +

This helper will assist you in setting the open, due, + and answer dates for problems, setting the problem + weights, or in setting the number of tries for + problems.

You will be asked to select which problems you wish to set the parameters for, then what parameter you @@ -49,13 +51,13 @@ Which problems do you wish to set a parameter for? - Every problem in the course + Course default for all problems - Every problem in a particular folder + Every problem in a particular folder (overrides course default) - One particular problem + One particular problem (overrides folder and course defaults) @@ -73,7 +75,7 @@ Select the problem you wish to set the parameter for: - + CHOOSE_ACTION return $res->is_map || $res->is_problem() return $res->is_problem() @@ -102,8 +104,8 @@ if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) { - return '"' . $element->getValue() . '" is not '. - 'an acceptable weight. Weight must be a positive number. ';} + return &mt('[_1] is not an acceptable weight. Weight must be a positive number.','"'.$element->getValue().'"'); + } return undef; @@ -116,9 +118,7 @@ if ($val !~ /^[1234567890]+$/) { - return '"' . $element->getValue() . '" is not '. - 'an acceptable number of tries. Tries must be a positive number ' . - 'with no decimal point.';} + return &mt('[_1] is not an acceptable number of tries. Tries must be a positive number with no decimal point.','"'.$element->getValue().'"');} return undef; @@ -139,15 +139,20 @@ return 'Set ' . &{$helper->{DATA}->{'dateType'}}() . - 'for ' . + ' for ' . &{$helper->{DATA}->{'levelType'}}() . - ' for. . .'; + ' for ...'; . . . for all students in the course . . . for a particular section + + return 1 if (&Apache::longroup::coursegroups()) + + . . . for a particular group + . . . for an individual student @@ -161,6 +166,15 @@

+ + + return 'Please select the group you wish to set the ' . + &{$helper->{DATA}->{'dateType'}}() . + ' for:
';
+ +
+ + return 'Please select the student you wish to set the ' .