[LON-CAPA-cvs] cvs: loncom /interface groupsort.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 15 Jun 2007 19:18:45 -0000
albertel Fri Jun 15 15:18:45 2007 EDT
Modified files:
/loncom/interface groupsort.pm
Log:
- improve verbiage on the import screen when in recover mode
Index: loncom/interface/groupsort.pm
diff -u loncom/interface/groupsort.pm:1.50 loncom/interface/groupsort.pm:1.51
--- loncom/interface/groupsort.pm:1.50 Mon Dec 4 21:55:51 2006
+++ loncom/interface/groupsort.pm Fri Jun 15 15:18:45 2007
@@ -2,7 +2,7 @@
# The LON-CAPA group sort handler
# Allows for sorting prior to import into RAT.
#
-# $Id: groupsort.pm,v 1.50 2006/12/05 02:55:51 albertel Exp $
+# $Id: groupsort.pm,v 1.51 2007/06/15 19:18:45 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -328,6 +328,7 @@
'ci' => 'Continue Import',
'cs' => 'Continue Search',
'fi' => 'Finish Import',
+ 're' => 'Recover Checked',
'ca' => 'Cancel',
'co' => 'Change Order',
'ti' => 'Title',
@@ -349,22 +350,29 @@
<input type="hidden" name="recover" value="$env{'form.recover'}" />
END
+
+ # ---
+
+ if ($env{'form.recover'}) {
+ $r->print(<<END);
+<input type="button" name="alter" value="$lt{'re'}"
+ onClick="finish_import()" />
+<input type="button" name="alter" value="$lt{'ca'}" onClick="self.close()" />
+END
+ } else {
# --- Continue Buttons
- my $resurl =
- &Apache::loncommon::escape_single(&Apache::loncommon::lastresurl());
- $r->print(<<END);
+ my $resurl =
+ &Apache::loncommon::escape_single(&Apache::loncommon::lastresurl());
+ $r->print(<<END);
<input type="button" name="alter" value="$lt{'ci'}"
onClick="window.location='$resurl?catalogmode=import'" />
<input type="button" name="altersearch" value="$lt{'cs'}"
onClick="window.location='/adm/searchcat?catalogmode=import'" />
-END
- # ---
-
- $r->print(<<END);
<input type="button" name="alter" value="$lt{'fi'}"
onClick="finish_import()" />
<input type="button" name="alter" value="$lt{'ca'}" onClick="self.close()" />
END
+ }
$r->print("<table border='0'><tr><td bgcolor='#eeeeee'>");
$r->print("<table border=0><tr>\n");
if (($env{'form.readfile'}) || ($env{'form.bookmarks'})) {