');
+ $r->print('
'.$message.'
');
+ $r->print('
');
} else {
my $safeinit;
$r->print(&Apache::lonxml::xmlparse($r,'tex',''.$message.'
'));
}
if ($allowed) {
- if ($env{'form.grade_target'} ne 'tex') {
- $r->print(
- '
'.&mt('Title').'
');
+ if ($env{'form.grade_target'} ne 'tex') {
+ &Apache::lontemplate::print_template($r, &mt('Title'), $message, $allowed, 'LC_ContentBoxSpecial');
+ &Apache::lontemplate::print_editbox_template($r,$syllabus{$field},$field);
+ $r->print('');
} else {
my $safeinit;
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit));
}
- }
+ }
+ if(!$allowed) {$r->print($image); }
} else {
- if (($field ne 'bbb_content') || ($allowed)) {
- if ($target ne 'tex') {
- $r->print(''.$syllabusfields{$field}.'
');
- } else {
- my $safeinit;
- $r->print(&Apache::lonxml::xmlparse($r,'tex',''.$syllabusfields{$field}.'
'));
- }
- }
if ($target ne 'tex') {
- $r->print(''.
- $message.'
');
+ if($allowed){
+ $r->print('');
+ }
+ &Apache::lontemplate::print_template($r,$syllabusfields{$field},$message,$allowed,'LC_ContentBoxSpecial');
} else {
my $safeinit;
+ $r->print(&Apache::lonxml::xmlparse($r,'tex','
'.$syllabusfields{$field}.'
'));
$r->print(&Apache::lonxml::xmlparse($r,'tex',$message));
}
if ($allowed) {
if ($target ne 'tex') {
- $r->print('
');
+ &Apache::lontemplate::print_editbox_template($r,$syllabus{$field},$field);
+ $r->print('');
} else {
my $safeinit;
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit));
@@ -366,9 +384,12 @@ sub handler {
if ($group ne '') {
&display_group_links($r,$target,$group,'view',$refarg,%groupinfo);
} else {
- $r->print(&mt('No page information provided.
'));
+ $r->print(''.&mt('No page information provided.').'
');
}
}
+
+ $r->print('
');
+ $r->print('
');
if ($env{'form.grade_target'} ne 'tex') {
$r->print(&Apache::loncommon::end_page());
} else {
@@ -382,7 +403,7 @@ sub display_group_links {
my @available = ();
my %menu = ();
%{$menu{'email'}} = (
- text => 'Group message',
+ text => 'Group Message',
href => '/adm/email?compose=group&group='.$group.
$refarg,
);
@@ -391,16 +412,16 @@ sub display_group_links {
href => '/adm/groupboards?group='.$group.$refarg,
);
%{$menu{'chat'}} = (
- text => 'Group chat',
+ text => 'Group Chat Room',
href => "javascript:group_chat('$group')",
);
%{$menu{'files'}} = (
- text => 'File repository',
+ text => 'File Repository',
href => '/adm/coursegrp_portfolio?group='.$group.
$refarg,
);
%{$menu{'roster'}} = (
- text => 'Membership roster',
+ text => 'Membership Roster',
href => '/adm/grouproster?group='.$group.$refarg,
);
foreach my $tool (sort(keys(%menu))) {
@@ -409,16 +430,27 @@ sub display_group_links {
}
}
if (@available > 0) {
- my $output = '