[LON-CAPA-cvs] cvs: loncom /homework edit.pm lonsimpleproblemedit.pm structuretags.pm /xml lonxml.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 17 Mar 2005 13:56:32 -0000


albertel		Thu Mar 17 08:56:32 2005 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
    /loncom/homework	structuretags.pm edit.pm lonsimpleproblemedit.pm 
  Log:
  - style="width:100%" tells a textarea to be as wides as it can be
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.365 loncom/xml/lonxml.pm:1.366
--- loncom/xml/lonxml.pm:1.365	Wed Mar 16 14:09:44 2005
+++ loncom/xml/lonxml.pm	Thu Mar 17 08:56:32 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.365 2005/03/16 19:09:44 albertel Exp $
+# $Id: lonxml.pm,v 1.366 2005/03/17 13:56:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1252,7 +1252,7 @@
 $xml_help
 <input type="hidden" name="editmode" value="$lt{'ed'}" />
 $buttons<br />
-<textarea cols="80" rows="44" name="filecont" id="filecont">$filecontents</textarea>
+<textarea style="width:100%" cols="80" rows="44" name="filecont" id="filecont">$filecontents</textarea>
 <br />$buttons
 <br />
 </form>
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.281 loncom/homework/structuretags.pm:1.282
--- loncom/homework/structuretags.pm:1.281	Mon Feb 28 22:21:58 2005
+++ loncom/homework/structuretags.pm	Thu Mar 17 08:56:32 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.281 2005/03/01 03:21:58 albertel Exp $
+# $Id: structuretags.pm,v 1.282 2005/03/17 13:56:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -216,7 +216,7 @@
        <input type="submit" name="submit" accesskey="v" value="'.&mt('Submit Changes and View').'" /><table><tr><td>'.
        &Apache::loncommon::help_open_menu('','Problem Editing Help','Problem_Editor_XML_Index','',5,'Authoring',undef,undef,undef,'Problem Editing Help')
        .'</td></tr></table>'.
-       '<table border="0"><tr><td bgcolor="#DDDDDD">';
+       '<table border="0" width="100%"><tr><td bgcolor="#DDDDDD">';
 }
 
 sub problem_edit_footer {
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.90 loncom/homework/edit.pm:1.91
--- loncom/homework/edit.pm:1.90	Wed Mar  9 21:33:30 2005
+++ loncom/homework/edit.pm	Thu Mar 17 08:56:32 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.90 2005/03/10 02:33:30 www Exp $
+# $Id: edit.pm,v 1.91 2005/03/17 13:56:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -239,7 +239,7 @@
 	    }
 	} else {
 	    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;
@@ -520,7 +520,7 @@
 	push @Apache::lonxml::htmlareafields,'homework_edit_'.
 	    $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_'.
 	$Apache::lonxml::curdepth.'" id="homework_edit_'.
 	$Apache::lonxml::curdepth.'">'.
Index: loncom/homework/lonsimpleproblemedit.pm
diff -u loncom/homework/lonsimpleproblemedit.pm:1.13 loncom/homework/lonsimpleproblemedit.pm:1.14
--- loncom/homework/lonsimpleproblemedit.pm:1.13	Tue Dec 14 13:24:17 2004
+++ loncom/homework/lonsimpleproblemedit.pm	Thu Mar 17 08:56:32 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Simple Problem Parameter Setting "Editor"
 #
-# $Id: lonsimpleproblemedit.pm,v 1.13 2004/12/14 18:24:17 albertel Exp $
+# $Id: lonsimpleproblemedit.pm,v 1.14 2005/03/17 13:56:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -66,7 +66,7 @@
     return (<<ENDQUESTION);
 <table bgcolor="#dddd22" cellspacing="4" cellpadding="2">
 <tr><td><b>$qt</b><br />
-<textarea name="questiontext" cols="80" rows="8">$text</textarea>
+<textarea style="width:100%" name="questiontext" cols="80" rows="8">$text</textarea>
 </td></tr>
 </table>
 <br />
@@ -79,7 +79,7 @@
     return (<<ENDHINT);
 <table bgcolor="#accacc" cellspacing="4" cellpadding="2">
 <tr><td><b>$ht</b><br />
-<textarea name="hinttext" cols="80" rows="4">$text</textarea>
+<textarea style="width:100%" name="hinttext" cols="80" rows="4">$text</textarea>
 </td></tr>
 </table>
 <br />
@@ -121,7 +121,7 @@
 <tr><td colspan="2"><b>$lt{'foil'}</b></td></tr>
 <tr><td>$lt{'value'}: $selectvalue</td><td>$lt{'pos'}: $selectposition</td></tr>
 <tr><td colspan="2">$lt{'text'}:<br />
-<textarea name="text$number" cols="80" rows="4">$text</textarea>
+<textarea style="width:100%" name="text$number" cols="80" rows="4">$text</textarea>
 </td></tr>
 </table>
 <br />