--- loncom/homework/outputtags.pm 2001/06/01 15:58:00 1.7
+++ loncom/homework/outputtags.pm 2001/08/13 20:51:04 1.11
@@ -9,7 +9,7 @@ sub BEGIN {
}
sub start_displayduedate {
- my ($target,$token,$parstack,$parser,$safeeval)=@_;
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
my $result;
my $status=$Apache::inputtags::status['-1'];
&Apache::lonxml::debug("got a $status in duedatebox");
@@ -29,25 +29,41 @@ sub start_displayduedate {
} else {
$result ='
';
}
+ } elsif ( $target eq 'edit' ) {
+ $result=&Apache::edit::tag_start($target,$token,
+ &Apache::lonxml::description($token));
+ $result.='';
+ $result.=&Apache::edit::end_table();
}
return $result;
}
sub end_displayduedate {
- return '';
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
+ my @result;
+ if ($target eq 'edit') { @result[1]='no'; }
+ return @result;
}
sub start_displaytitle {
- my ($target,$token,$parstack,$parser,$safeeval)=@_;
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
my $result='';
if ($target eq 'web') {
$result="$Apache::lonhomework::name
";
+ } elsif ($target eq 'edit') {
+ $result=&Apache::edit::tag_start($target,$token,
+ &Apache::lonxml::description($token));
+ $result.='';
+ $result.=&Apache::edit::end_table();
}
return $result;
}
sub end_displaytitle {
- return '';
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
+ my @result;
+ if ($target eq 'edit') { @result[1]='no'; }
+ return @result;
}
1;