%perl> # Make sure we've got an ID. redirect('/admin/manager/pref') unless defined $id; # Instantiate an object. my $pref = $class->lookup({ id => $id}); # Check authorization. chk_authz($pref, $id ? READ : CREATE); my $no_edit = !chk_authz($pref, EDIT, 1); # Output the header and other necessities. $m->comp('/widgets/wrappers/sharky/header.mc', title => "$disp Profile", context => "Admin | Profile | $disp | "" . $pref->get_name . """ ); $m->out(qq{
<& '/widgets/wrappers/sharky/footer.mc', param => \%ARGS &> <%once>; my $class = 'Bric::Util::Pref'; my $widget = 'profile'; my $type = 'pref'; my $disp = get_disp_name($type); %once> <%args> $id => undef %args> <%doc> ############################################################################### =head1 NAME /admin/profile/preferences/dhandler - Manages application global preferences. =head1 VERSION $LastChangedRevision$ =head1 DATE $LastChangedDate$ =head1 DESCRIPTION Simple interface for managing global preferences. %doc>