$lt{'rev'} | $lt{'ren'} | $lt{'del'} | $lt{'rol'} | $lt{'ext'} | $lt{'sta'} | $lt{'end'} |
END
my (%roletext,%sortrole,%roleclass);
foreach my $area (sort { my $a1=join('_',(split('_',$a))[1,0]);
@@ -466,6 +467,12 @@ END
}
}
$row.='';
+ if ($allowed && !$active) {
+ $row.= '';
+ } else {
+ $row.=' ';
+ }
+ $row.=' | ';
if ($delallowed) {
$row.= '';
} else {
@@ -619,7 +626,7 @@ ENDOTHERAUTHS
'rol' => "Role",
'ext' => "Extent",
'sta' => "Start",
- 'end' => "End".
+ 'end' => "End",
'cau' => "Co-Author",
'ssd' => "Set Start Date",
'sed' => "Set End Date"
@@ -629,13 +636,13 @@ ENDOTHERAUTHS
$lt{'act'} | $lt{'rol'} | $lt{'ext'} |
$lt{'sta'} | $lt{'end'} |
- |
+ |
$lt{'cau'} |
$cudom\_$cuname |
-
+ |
$lt{'ssd'} |
-
+ |
$lt{'sed'} |
@@ -957,6 +964,27 @@ END
$ENV{'course.'.$cid.'.home'}).' ');
}
}
+ } elsif ($_=~/^form\.ren/) {
+ if ($_=~/^form\.ren\:([^\_]+)\_([^\_]+)$/) {
+ my $result=&Apache::lonnet::assignrole($ENV{'form.ccdomain'},
+ $ENV{'form.ccuname'},$1,$2,0,$now);
+ $r->print(&mt('Re-Enabling [_1] in [_2]: [_3]',
+ $2,$1,$result).' ');
+ if ($2 eq 'st') {
+ $1=~/^\/(\w+)\/(\w+)/;
+ my $cid=$1.'_'.$2;
+ $r->print(&mt('Add to classlist').': '.
+ &Apache::lonnet::critical(
+ 'put:'.$ENV{'course.'.$cid.'.domain'}.':'.
+ $ENV{'course.'.$cid.'.num'}.':classlist:'.
+ &Apache::lonnet::escape(
+ $ENV{'form.ccuname'}.':'.
+ $ENV{'form.ccdomain'} ).'='.
+ &Apache::lonnet::escape(':'.$now),
+ $ENV{'course.'.$cid.'.home'})
+ .' ');
+ }
+ }
} elsif ($_=~/^form\.act/) {
if
($_=~/^form\.act\_([^\_]+)\_([^\_]+)\_cr_cr_([^\_]+)_(\w+)_([^\_]+)$/) {
|
---|