version 1.14, 2005/06/07 21:19:57
|
version 1.18, 2009/07/08 17:55:07
|
Line 104
|
Line 104
|
</eval> |
</eval> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="WEIGHT"> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="WEIGHT"> |
<validator>if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) { |
<validator>if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) { |
return &mt('" [_1] " is not an acceptable weight. Weight must be a positive number.',$element->getValue()); |
return &mt('[_1] is not an acceptable weight. Weight must be a positive number.','"'.$element->getValue().'"'); |
} |
} |
return undef; |
return undef; |
</validator> |
</validator> |
Line 118
|
Line 118
|
</eval> |
</eval> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="TRIES"> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="TRIES"> |
<validator>if ($val !~ /^[1234567890]+$/) { |
<validator>if ($val !~ /^[1234567890]+$/) { |
return &mt('" [_1] " is not an acceptable number of tries. Tries must be a positive number with no decimal point.',$element->getValue());} |
return &mt('[_1] is not an acceptable number of tries. Tries must be a positive number with no decimal point.','"'.$element->getValue().'"');} |
return undef; |
return undef; |
</validator> |
</validator> |
</string> |
</string> |
Line 148
|
Line 148
|
. . . for <b>all students</b> in the course</choice> |
. . . for <b>all students</b> in the course</choice> |
<choice computer="section" nextstate="CHOOSE_SECTION"> |
<choice computer="section" nextstate="CHOOSE_SECTION"> |
. . . for a particular <b>section</b></choice> |
. . . for a particular <b>section</b></choice> |
|
<condition> |
|
<clause>return 1 if (&Apache::longroup::coursegroups())</clause> |
|
<choice computer="group" nextstate="CHOOSE_GROUP"> |
|
. . . for a particular <b>group</b></choice> |
|
</condition> |
<choice computer="student" nextstate="CHOOSE_STUDENT"> |
<choice computer="student" nextstate="CHOOSE_STUDENT"> |
. . . for an individual <b>student</b></choice> |
. . . for an individual <b>student</b></choice> |
</choices> |
</choices> |
Line 161
|
Line 166
|
<section variable="SECTION_NAME" nextstate="FINISH" /> |
<section variable="SECTION_NAME" nextstate="FINISH" /> |
</state> |
</state> |
|
|
|
<state name="CHOOSE_GROUP" title="Select Group"> |
|
<eval> |
|
return 'Please select the group you wish to set the ' . |
|
&{$helper->{DATA}->{'dateType'}}() . |
|
' for:<br />';</eval> |
|
<group variable="GROUP_NAME" nextstate="FINISH" /> |
|
</state> |
|
|
|
|
<state name="CHOOSE_STUDENT" title="Select Student"> |
<state name="CHOOSE_STUDENT" title="Select Student"> |
<eval> |
<eval> |
return 'Please select the student you wish to set the ' . |
return 'Please select the student you wish to set the ' . |