--- loncom/interface/lonconfigsettings.pm 2011/01/13 22:49:47 1.17 +++ loncom/interface/lonconfigsettings.pm 2011/03/31 15:35:54 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: lonconfigsettings.pm,v 1.17 2011/01/13 22:49:47 www Exp $ +# $Id: lonconfigsettings.pm,v 1.18 2011/03/31 15:35:54 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -120,7 +120,9 @@ $jscript } $r->print(&Apache::loncommon::start_page($pagetitle,$js,$additem)); $r->print(&Apache::lonhtmlcommon::breadcrumbs($brcrumtitle)); - &Apache::lonparmset::startSettingsScreen($r,'coursepref'); + if ($context eq 'course') { + &Apache::lonparmset::startSettingsScreen($r,'coursepref'); + } $r->print('
'); - &Apache::lonparmset::endSettingsScreen($r); + if ($context eq 'course') { + &Apache::lonparmset::endSettingsScreen($r); + } $r->print(&Apache::loncommon::end_page()); } return; @@ -233,7 +237,7 @@ sub make_changes { if ($context eq 'course') { $footer_text = 'Back to display/edit settings'; } - &print_footer($r,$phase,'display',$footer_text,\@actions); + &print_footer($r,$context,$phase,'display',$footer_text,\@actions); $r->print(''); } @@ -278,7 +282,7 @@ sub display_settings { $r->print($output{$items[$i]}); } $r->print(''); - $r->print(&print_footer($r,$phase,'process','Save Changes',\@actions)); + $r->print(&print_footer($r,$context,$phase,'process','Save Changes',\@actions)); } else { $r->print(''. ''.&mt('No settings chosen'). @@ -368,7 +372,7 @@ sub display_choices { } $r->print('