--- loncom/publisher/lonrights.pm 2009/05/28 17:08:38 1.27 +++ loncom/publisher/lonrights.pm 2009/12/02 18:33:35 1.29 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to show and edit custom distribution rights # -# $Id: lonrights.pm,v 1.27 2009/05/28 17:08:38 bisitz Exp $ +# $Id: lonrights.pm,v 1.29 2009/12/02 18:33:35 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -68,8 +68,8 @@ sub handler { my $js = &Apache::loncommon::coursebrowser_javascript(). &Apache::loncommon::studentbrowser_javascript(); + # Breadcrumbs are included by &start_page $r->print(&Apache::loncommon::start_page('Custom Distribution Rights',$js) - .&Apache::lonhtmlcommon::breadcrumbs() .&Apache::loncommon::head_subbox( &Apache::loncommon::CSTR_pageheader()) ); @@ -211,7 +211,7 @@ sub handler { if ($constructmode) { $r->print(&Apache::loncommon::select_form('','action_0', ('' => '', - 'insertbelow' => 'Insert rule below'))); + 'insertbelow' => &mt('Insert rule below')))); } else { $r->print(' '); @@ -220,6 +220,7 @@ sub handler { if ($constructmode) { $r->print(&Apache::loncommon::select_form ($token->[2]->{'effect'},'effect_0', + &Apache::lonlocal::texthash ('allow' => 'allow', 'deny' => 'deny'))); } else { @@ -242,6 +243,7 @@ sub handler { if ($constructmode) { $r->print(&Apache::loncommon::select_form( '','action_'.$rulecounter, + &Apache::lonlocal::texthash ('' => '', 'delete' => 'Delete this rule', 'insertabove' => 'Insert rule above', @@ -256,6 +258,7 @@ sub handler { $r->print(&Apache::loncommon::select_form ($token->[2]->{'effect'}, 'effect_'.$rulecounter, + &Apache::lonlocal::texthash ('allow' => 'allow', 'deny' => 'deny'))); } else { @@ -268,6 +271,7 @@ sub handler { if ($constructmode) { $r->print(&Apache::loncommon::select_form($type, 'type_'.$rulecounter, + &Apache::lonlocal::texthash ('course' => 'Course', 'user' => 'User'))); } else {