[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm structuretags.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 30 Oct 2007 00:17:18 -0000
albertel Mon Oct 29 20:17:18 2007 EDT
Modified files:
/loncom/homework structuretags.pm lonhomework.pm
Log:
- convert rest of problem edit <hr>s to new style
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.406 loncom/homework/structuretags.pm:1.407
--- loncom/homework/structuretags.pm:1.406 Mon Oct 29 20:09:30 2007
+++ loncom/homework/structuretags.pm Mon Oct 29 20:17:09 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.406 2007/10/30 00:09:30 albertel Exp $
+# $Id: structuretags.pm,v 1.407 2007/10/30 00:17:09 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -305,11 +305,13 @@
<input type="hidden" name="problemmode" value="'.&mt('Edit').'" />
<input type="submit" name="problemmode" accesskey="d" value="'.&mt('Discard Edits and View').'" />
<input '.&Apache::edit::submit_ask_anyway().' type="submit" name="problemmode" accesskey="x" value="'.&mt('EditXML').'" />
- <input type="submit" name="Undo" accesskey="u" value="'.&mt('undo').'" /> <hr />
+ <input type="submit" name="Undo" accesskey="u" value="'.&mt('undo').'" />
+ <hr class="LC_edit_problem_divide" />
<input type="submit" name="submit" accesskey="s" value="'.&mt('Submit Changes and Edit').'" />
- <input type="submit" name="submit" accesskey="v" value="'.&mt('Submit Changes and View').'" /><table><tr><td>'.
+ <input type="submit" name="submit" accesskey="v" value="'.&mt('Submit Changes and View').'" />
+ <div>'.
&Apache::loncommon::help_open_menu('Problem Editing Help','Problem_Editor_XML_Index',5,'Authoring',undef,undef,undef,'Problem Editing Help')
- .'</td></tr></table>'.
+ .'</div>'.
'<table border="0" width="100%"><tr><td bgcolor="#DDDDDD">';
}
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.277 loncom/homework/lonhomework.pm:1.278
--- loncom/homework/lonhomework.pm:1.277 Tue Oct 16 20:22:51 2007
+++ loncom/homework/lonhomework.pm Mon Oct 29 20:17:09 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.277 2007/10/17 00:22:51 albertel Exp $
+# $Id: lonhomework.pm,v 1.278 2007/10/30 00:17:09 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -746,11 +746,14 @@
<form name="lonhomework" method="POST" action="'.
&HTML::Entities::encode($env{'request.uri'},'<>&"').'">'.
&Apache::structuretags::remember_problem_state().'
+ <div class="LC_edit_problem_analyze_header">
<input type="submit" name="problemmode" value="'.&mt("EditXML").'" />
<input type="submit" name="problemmode" value="'.&mt('Edit').'" />
- <hr />
+ <hr class="LC_edit_problem_divide" />
+
<input type="submit" name="submit" value="'.&mt("View").'" />
- <hr />
+ <hr class="LC_edit_problem_divide" />
+ </div>
</form>';
&Apache::lonxml::add_messages(\$result);
$request->print($result);
@@ -823,7 +826,7 @@
}
&Apache::lonhtmlcommon::Update_PrgWin($request,\%prog_state,
&mt('Analyzing Results'));
- $request->print('<hr />'.&mt('List of possible answers').': ');
+ $request->print('<hr class="LC_edit_problem_divide" />'.&mt('List of possible answers').': ');
foreach my $part (sort(keys(%allparts))) {
if (defined(@{ $overall{$part.'.answer'} })) {
for (my $i=0;$i<scalar(@{ $overall{$part.'.answer'} });$i++) {
@@ -940,14 +943,16 @@
<form '.&Apache::edit::form_change_detection().' name="lonhomework" method="POST" action="'.
&HTML::Entities::encode($env{'request.uri'},'<>&"').'">'.
&Apache::structuretags::remember_problem_state().'
+ <div class="LC_edit_problem_editxml_header">
<input type="hidden" name="problemmode" value="'.&mt('EditXML').'" />
<input type="submit" name="problemmode" accesskey="d" value="'.&mt('Discard Edits and View').'" />
<input type="submit" '.&Apache::edit::submit_ask_anyway().'name="problemmode" accesskey="e" value="'.&mt('Edit').'" />
<input type="submit" name="Undo" accesskey="u" value="'.&mt('undo').'" />
- <hr />
+ <hr class="LC_edit_problem_divide" />
<input type="submit" name="submit" accesskey="s" value="'.&mt('Submit Changes').'" />
<input type="submit" name="submit" accesskey="v" value="'.&mt('Submit Changes and View').'" />
- <hr />
+ <hr class="LC_edit_problem_divide" />
+ </div>
' . $xml_help . '
<textarea '.&Apache::edit::element_change_detection().
' rows="'.$rows.'" cols="'.$cols.'" style="width:100%" '.