[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm /interface loncommon.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 13 Nov 2007 23:05:49 -0000
albertel Tue Nov 13 18:05:49 2007 EDT
Modified files:
/loncom/homework structuretags.pm
/loncom/interface loncommon.pm
Log:
- make the bottom buttons a complete mimic of the top buttons.
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.411 loncom/homework/structuretags.pm:1.412
--- loncom/homework/structuretags.pm:1.411 Tue Nov 13 18:01:05 2007
+++ loncom/homework/structuretags.pm Tue Nov 13 18:05:32 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.411 2007/11/13 23:01:05 albertel Exp $
+# $Id: structuretags.pm,v 1.412 2007/11/13 23:05:32 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -324,8 +324,23 @@
}
sub problem_edit_footer {
- return '</td></tr></table><br /><input type="submit" name="submit" value="'.&mt('Save and Edit').'" />
- <input type="submit" name="submit" value="'.&mt('Save and View').'" />'.
+ return '</td></tr></table><br />
+<div class="LC_edit_problem_footer">
+ <hr class="LC_edit_problem_divide" />
+ <div class="LC_edit_problem_discards">
+ <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').'" />
+ </div>
+ <div class="LC_edit_problem_saves">
+ <input type="submit" name="submit" value="'.&mt('Save and Edit').'" />
+ <input type="submit" name="submit" value="'.&mt('Save and View').'" />
+ </div>
+ <hr class="LC_edit_problem_divide" />
+</div>
+'.
+
&Apache::lonhtmlcommon::htmlareaselectactive(&Apache::lonhtmlcommon::get_htmlareafields()).
"\n</form>\n".&Apache::loncommon::end_page();
}
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.613 loncom/interface/loncommon.pm:1.614
--- loncom/interface/loncommon.pm:1.613 Mon Nov 12 20:47:56 2007
+++ loncom/interface/loncommon.pm Tue Nov 13 18:05:45 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.613 2007/11/13 01:47:56 albertel Exp $
+# $Id: loncommon.pm,v 1.614 2007/11/13 23:05:45 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5104,12 +5104,15 @@
font: normal bold $sans;
}
-div.LC_edit_problem_header {
+div.LC_edit_problem_header,
+div.LC_edit_problem_footer {
font: normal medium $sans;
margin: 2px;
}
div.LC_edit_problem_header,
div.LC_edit_problem_header div,
+div.LC_edit_problem_footer,
+div.LC_edit_problem_footer div,
div.LC_edit_problem_editxml_header,
div.LC_edit_problem_editxml_header div {
margin-top: 5px;