--- loncom/interface/slotrequest.pm 2005/05/31 17:42:11 1.1 +++ loncom/interface/slotrequest.pm 2005/09/09 18:27:56 1.13 @@ -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.1 2005/05/31 17:42:11 albertel Exp $ +# $Id: slotrequest.pm,v 1.13 2005/09/09 18:27:56 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,7 +37,17 @@ use Apache::lonnet; sub fail { my ($r,$code)=@_; - $r->print(); + if ($code eq 'not_valid') { + $r->print('
'.&mt('Unable to understand what resource you wanted to sign up for.').'
'); + + } elsif ($code eq 'not_allowed') { + $r->print(''.&mt('Not allowed to sign up or change reservations at this time.').'
'); + } else { + $r->print(''.&mt('Failed.').'
'); + } + + $r->print(''); &end_page($r); } @@ -54,17 +64,483 @@ sub end_page { $r->print(&Apache::loncommon::endbodytag().'