'.&Apache::loncommon::end_data_table_row());
+ my $lastclose=$element eq $lastpers?1:0;
+ $r->print(&Apache::lonhtmlcommon::row_closure($lastclose));
} else {
$r->print('\\\\ \hline');
}
}
if ($target ne 'tex') {
- $r->print(&Apache::loncommon::end_data_table());
+ $r->print(&Apache::lonhtmlcommon::end_pick_box());
} else {
$r->print('\end{tabular}\\\\');
}
@@ -189,7 +241,7 @@ sub handler {
}
if ($allowed) {
$r->print('
'.
-&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'
'.&mt('This syllabus can be publicly viewed at')
+&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes')).'
'.&mt('This syllabus can be publicly viewed at')
.' http://'.
&Apache::lonnet::hostname($homeserver).$r->uri.''.
&Apache::loncommon::help_open_topic('Syllabus_ExtLink').'
'.
@@ -302,8 +354,8 @@ sub handler {
}
if ($allowed) {
$r->print('
');
} else {
$r->print('\\\\\textbf{'.$syllabusfields{$field}.'}\\\\'.
&Apache::lonxml::xmlparse($r,'tex',$message).'\\\\');
@@ -325,9 +378,10 @@ sub handler {
push(@htmlids,$field);
}
if ($allowed) {
- $r->print(' ');
+ &Apache::lontemplate::print_editbox_template($r, $syllabus{$field}, $field);
+# $r->print(' ');
}
}
}
@@ -338,10 +392,15 @@ sub handler {
if ($target ne 'tex') {$r->print('');} else {$r->print('\\\\');}
} else {
if ($target ne 'tex') {$r->print('
');} else {$r->print('\par ');}
- $r->print('No syllabus information provided.');
+ $r->print(&mt('No syllabus information provided.'));
if ($target ne 'tex') {$r->print('
');}
}
if ($target ne 'tex') {
+ if ($env{'form.backto'} eq 'coursecatalog') {
+ $r->print('');
+ }
$r->print(&Apache::loncommon::end_page());
} else {
$r->print('\end{document}');