[LON-CAPA-cvs] cvs: loncom /interface slotrequest.pm

bisitz bisitz@source.lon-capa.org
Fri, 27 Mar 2009 11:39:07 -0000


bisitz		Fri Mar 27 11:39:07 2009 EDT

  Modified files:              
    /loncom/interface	slotrequest.pm 
  Log:
  - Added line breaks in script code in manage_reservations output
  - Message about no transactions to display:
      - Corrected typo
      - Added info style
  
  
Index: loncom/interface/slotrequest.pm
diff -u loncom/interface/slotrequest.pm:1.91 loncom/interface/slotrequest.pm:1.92
--- loncom/interface/slotrequest.pm:1.91	Fri Mar 27 06:47:59 2009
+++ loncom/interface/slotrequest.pm	Fri Mar 27 11:39:07 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler for requesting to have slots added to a students record
 #
-# $Id: slotrequest.pm,v 1.91 2009/03/27 06:47:59 raeburn Exp $
+# $Id: slotrequest.pm,v 1.92 2009/03/27 11:39:07 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1426,7 +1426,14 @@
 sub manage_reservations {
     my ($r,$type) = @_;
     my $navmap = Apache::lonnavmaps::navmap->new();
-    $r->print('<p>'.&mt('Instructors may use a reservation system to place restrictions on when and where assignments can be worked on.').'<br />'.&mt('One example is for management of laboratory space, which is only available at certain times, and has a limited number of seats.').'</p><p>'.&mt('Your reservation status for any such assignments is listed below:').'</p>');
+    $r->print('<p>'
+             .&mt('Instructors may use a reservation system to place restrictions on when and where assignments can be worked on.')
+             .'<br />'
+             .&mt('One example is for management of laboratory space, which is only available at certain times, and has a limited number of seats.')
+             .'</p><p>'
+             .&mt('Your reservation status for any such assignments is listed below:')
+             .'</p>'
+    );
     if (!defined($navmap)) {
         $r->print('<div class="LC_error">'.
                   &mt('Unable to retrieve information about course contents').
@@ -1723,7 +1730,10 @@
 ENDSCRIPT
         }
     } else {
-        $r->print(&mt('There are no trasactions to display'));
+        $r->print('<span class="LC_info">'
+                 .&mt('There are no transactions to display')
+                 .'</span>'
+        );
     }
     $r->print('<input type="hidden" name="page" value="'.$curr{'page'}.'" />'."\n".
               '<input type="hidden" name="command" value="showresv" />'."\n");