Diff for /loncom/html/adm/helper/parameter.helper between versions 1.11 and 1.14

version 1.11, 2004/04/27 15:14:56 version 1.14, 2005/06/07 21:19:57
Line 26 Line 26
   
   <state name="START" title="Welcome to the Assignment Parameter Helper">    <state name="START" title="Welcome to the Assignment Parameter Helper">
     <message nextstate="CHOOSE_LEVEL">      <message nextstate="CHOOSE_LEVEL">
         <p>This helper will assist you in <b>setting the open,  
    due, and answer dates</b> for problems, or in          <p>This helper will assist you in <b>setting the open, due,
            <b>setting the number of tries</b> for problems.</p>     and answer dates</b> for problems, <b>setting the problem
      weights</b>, or in <b>setting the number of tries</b> for
      problems.</p>
   
         <p>You will be asked to <b>select which problems</b> you wish to          <p>You will be asked to <b>select which problems</b> you wish to
            set the parameters for, then <b>what parameter</b> you              set the parameters for, then <b>what parameter</b> you 
Line 73 Line 75
   <state name="CHOOSE_RESOURCE" title="Select Problem">    <state name="CHOOSE_RESOURCE" title="Select Problem">
     <message>Select the problem you wish to set the parameter for:</message>      <message>Select the problem you wish to set the parameter for:</message>
   
     <resource variable="RESOURCE_ID" nextstate="CHOOSE_ACTION">      <resource variable="RESOURCE_ID" nextstate="CHOOSE_ACTION" addparts="true">
       <nextstate>CHOOSE_ACTION</nextstate>        <nextstate>CHOOSE_ACTION</nextstate>
       <filterfunc>return $res->is_map || $res->is_problem()</filterfunc>        <filterfunc>return $res->is_map || $res->is_problem()</filterfunc>
       <choicefunc>return $res->is_problem()</choicefunc>        <choicefunc>return $res->is_problem()</choicefunc>
Line 102 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 '&quot;'.$element->getValue().'&quot; '.&mt('is not an acceptable weight. Weight must be a positive number.');                     return &mt('&quot; [_1] &quot; is not an acceptable weight. Weight must be a positive number.',$element->getValue());
                  }                    } 
                  return undef;                   return undef;
         </validator>          </validator>
Line 116 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 '&quot;' . $element->getValue() . '&quot; '.&mt('is not an acceptable number of tries. Tries must be a positive number with no decimal point.');}                      return &mt('&quot; [_1] &quot; 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>

Removed from v.1.11  
changed lines
  Added in v.1.14


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>