Diff for /loncom/homework/edit.pm between versions 1.88 and 1.91

version 1.88, 2004/10/26 15:06:58 version 1.91, 2005/03/17 13:56:32
Line 239  sub handle_insert { Line 239  sub handle_insert {
     }      }
  } else {   } else {
     my $newtag=$Apache::lonxml::insertlist{"$tagnum.tag"};      my $newtag=$Apache::lonxml::insertlist{"$tagnum.tag"};
     &Apache::lonxml::error("Unable to insert tag $newtag, $func was not defined.");      &Apache::lonxml::error("Unable to insert tag ".$Apache::lonxml::curdepth." ($tagnum) $newtag, func was not defined.");
  }   }
     }      }
     return $result;      return $result;
Line 300  sub insert_formularesponse { Line 300  sub insert_formularesponse {
 sub insert_numericalresponse {  sub insert_numericalresponse {
     return '      return '
 <numericalresponse answer="">  <numericalresponse answer="">
   <responseparam type="tolerance" default="5%" name="tol" description="Numerical Tolerance" />
   <responseparam name="sig" type="int_range,0-16" default="0,15" description="Significant Figures" />
     <textline />      <textline />
     <hintgroup>      <hintgroup>
     <startouttext /><endouttext />      <startouttext /><endouttext />
Line 328  sub insert_imageresponse { Line 330  sub insert_imageresponse {
     return '      return '
 <imageresponse max="1">  <imageresponse max="1">
     <foilgroup>      <foilgroup>
         <foil>
         </foil>
     </foilgroup>      </foilgroup>
     <hintgroup>      <hintgroup>
     <startouttext /><endouttext />      <startouttext /><endouttext />
Line 339  sub insert_optionresponse { Line 343  sub insert_optionresponse {
     return '      return '
 <optionresponse max="10">  <optionresponse max="10">
     <foilgroup options="">      <foilgroup options="">
         <foil>
            <startouttext /><endouttext />
         </foil>
     </foilgroup>      </foilgroup>
     <hintgroup>      <hintgroup>
     <startouttext /><endouttext />      <startouttext /><endouttext />
Line 366  sub insert_radiobuttonresponse { Line 373  sub insert_radiobuttonresponse {
     return '      return '
 <radiobuttonresponse max="10">  <radiobuttonresponse max="10">
     <foilgroup>      <foilgroup>
         <foil>
            <startouttext /><endouttext />
         </foil>
     </foilgroup>      </foilgroup>
     <hintgroup>      <hintgroup>
     <startouttext /><endouttext />      <startouttext /><endouttext />
Line 387  sub insert_rankresponse { Line 397  sub insert_rankresponse {
     return '      return '
 <rankresponse max="10">  <rankresponse max="10">
     <foilgroup options="">      <foilgroup options="">
         <foil>
            <startouttext /><endouttext />
         </foil>
     </foilgroup>      </foilgroup>
     <hintgroup>      <hintgroup>
     <startouttext /><endouttext />      <startouttext /><endouttext />
Line 400  sub insert_matchresponse { Line 413  sub insert_matchresponse {
     <foilgroup options="">      <foilgroup options="">
       <itemgroup>        <itemgroup>
       </itemgroup>        </itemgroup>
         <foil>
            <startouttext /><endouttext />
         </foil>
     </foilgroup>      </foilgroup>
     <hintgroup>      <hintgroup>
     <startouttext /><endouttext />      <startouttext /><endouttext />
Line 412  sub insert_displaytitle   { return '<dis Line 428  sub insert_displaytitle   { return '<dis
 sub insert_hintpart {  sub insert_hintpart {
     return '      return '
 <hintpart on="default">  <hintpart on="default">
     <startouttext/>      <startouttext/><endouttext />
     <endouttext />  
 </hintpart>';  </hintpart>';
 }  }
   
Line 505  sub editfield { Line 520  sub editfield {
  push @Apache::lonxml::htmlareafields,'homework_edit_'.   push @Apache::lonxml::htmlareafields,'homework_edit_'.
     $Apache::lonxml::curdepth;      $Apache::lonxml::curdepth;
     }      }
     return $description."\n".'&nbsp;&nbsp;&nbsp;<textarea rows="'.$rows.      return $description."\n".'&nbsp;&nbsp;&nbsp;<textarea style="width:100%" rows="'.$rows.
  '" cols="'.$cols.'" name="homework_edit_'.   '" cols="'.$cols.'" name="homework_edit_'.
  $Apache::lonxml::curdepth.'" id="homework_edit_'.   $Apache::lonxml::curdepth.'" id="homework_edit_'.
  $Apache::lonxml::curdepth.'">'.   $Apache::lonxml::curdepth.'">'.

Removed from v.1.88  
changed lines
  Added in v.1.91


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