--- loncom/html/adm/helper/newslot.helper 2005/10/17 21:19:30 1.5 +++ loncom/html/adm/helper/newslot.helper 2005/11/02 22:07:52 1.7 @@ -78,30 +78,64 @@ return &{$helper->{DATA}{origslot}}('description'); - - -

Time students can start reserving:
    - - - - - return &{$helper->{DATA}{origslot}}('startreserve','anytime'); - - - - -

Maxium number of students allowed in this slot:
    - - - - - if ($val ne '' && $val=~/\D/) { return 'Must be numeric.'; } - return undef; - - - return &{$helper->{DATA}{origslot}}('maxspace'); - - + + $helper->{'VARS'}{'type'} eq 'schedulable_student' + + +

Time students can start reserving:
    + + + + + return &{$helper->{DATA}{origslot}}('startreserve','anytime'); + + + + +

Maxium number of students allowed in this slot:
    + + + + + if ($val ne '' && $val=~/\D/) { return 'Must be numeric.'; } + return undef; + + + return &{$helper->{DATA}{origslot}}('maxspace'); + + + + +

Period of time in which this slot is can only be uniquely chosen:
   Start: + + + + + my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime'); + if ($default eq 'anytime') { return 'anytime' }; + if (ref($default)) { return $default->[0]; } + return 'anytime'; + + +
   End:
+ + + my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime'); + if ($default eq 'anytime') { return 'anytime' }; + if (ref($default)) { return $default->[1]; } + return 'anytime'; + + + + + $helper->{'VARS'}{'type'} eq 'preassigned' + + delete($helper->{'VARS'}{'startreserve'}); + delete($helper->{'VARS'}{'maxspace'}); + delete($helper->{'VARS'}{'startunique'}); + delete($helper->{'VARS'}{'endunique'}); + +

Secret word proctors use to checkin users:
    @@ -117,28 +151,6 @@ -

Period of time in which this slot is can only be uniquely chosen:
   Start: - - - - - my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime'); - if ($default eq 'anytime') { return 'anytime' }; - if (ref($default)) { return $default->[0]; } - return 'anytime'; - - -
   End:
- - - my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime'); - if ($default eq 'anytime') { return 'anytime' }; - if (ref($default)) { return $default->[1]; } - return 'anytime'; - - - -

Slot is: @@ -231,13 +243,18 @@ "\n".'

  • Type: '.$slot{'type'}.'
  • '; my %labels = map {($_->[0],$_->[1])} &Apache::slotrequest::csvupload_fields(); - foreach my $which ('ip','proctor','description','maxspace', - 'secret','symb') { + foreach my $which ('ip','description','maxspace','secret','symb') { if (exists($slot{$which})) { $result.="\n".'
  • '.$labels{$which}.': '. &HTML::Entities::encode($slot{$which}).'
  • '; } } + if (exists($slot{'proctor'})) { + my $proctors = $slot{'proctor'}; + $proctors =~ s/,/, /g; + $result.="\n".'
  • '.$labels{'proctor'}.': '. + &HTML::Entities::encode($proctors).'
  • '; + } if (exists($slot{'uniqueperiod'})) { $result.= "\n".'
  • '.$labels{'uniqueperiod'}.': '.