--- loncom/interface/slotrequest.pm 2009/03/27 06:47:59 1.91
+++ loncom/interface/slotrequest.pm 2009/06/30 15:03:28 1.99
@@ -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.99 2009/06/30 15:03:28 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -707,7 +707,8 @@ $lt{'or'}
STUFF
if (!$inhibit_return_link) {
- $r->print(&mt('or').'
').&return_link($r);
+ $r->print(&mt('or').'');
+ &return_link($r);
} else {
$r->print('');
}
@@ -1351,9 +1352,13 @@ LOGLINK
my $remove_all=&remove_link($slot,'remove all').' ';
- if ($ids ne '') { undef($delete); }
- if ($slots{$slot}{'type'} ne 'schedulable_student'
- || $ids eq '') {
+ if ($ids eq '') {
+ undef($remove_all);
+ } else {
+ undef($delete);
+ }
+ if ($slots{$slot}{'type'} ne 'schedulable_student') {
+ undef($showlog);
undef($remove_all);
}
@@ -1426,7 +1431,14 @@ STUFF
sub manage_reservations {
my ($r,$type) = @_;
my $navmap = Apache::lonnavmaps::navmap->new();
- $r->print('
'.&mt('Instructors may use a reservation system to place restrictions on when and where assignments can be worked on.').' '.&mt('One example is for management of laboratory space, which is only available at certain times, and has a limited number of seats.').'
'.&mt('Your reservation status for any such assignments is listed below:').'
');
+ $r->print('
'
+ .&mt('Instructors may use a reservation system to place restrictions on when and where assignments can be worked on.')
+ .' '
+ .&mt('One example is for management of laboratory space, which is only available at certain times, and has a limited number of seats.')
+ .'
'
+ .&mt('Your reservation status for any such assignments is listed below:')
+ .'
');
return;
}
@@ -1954,7 +1991,7 @@ sub display_filter {
my ($formname,$cdom,$cnum,$curr,$version,$allsymbs) = @_;
my $nolink = 1;
my (%titles,%maptitles);
- my $output = '
'.
+ my $output = '
'.
''.&mt('Changes/page:').' '.
&Apache::lonmeta::selectbox('show',$curr->{'show'},undef,
(&mt('all'),5,10,20,50,100,1000,10000)).
@@ -2020,14 +2057,14 @@ sub display_filter {
if ($version) {
$output .= ' '.&mt('This server is version [_3].','','',$version);
}
- $output .= ' ';
+ $output .= ' ';
return $output;
}
sub upload_start {
my ($r)=@_;
$r->print(&Apache::grades::checkforfile_js());
- my $result.='
'."\n";
+ my $result.='
'."\n";
$result.=' '.
&mt('Specify a file containing the slot definitions.').
'
'."\n";
@@ -2067,7 +2104,7 @@ Total number of records found in file: $
Enter as many fields as you can. The system will inform you and bring you back
to this page if the data selected is insufficient to create the slots.
-
+