%perl>; # Output the header and other necessities. $m->comp('/widgets/wrappers/sharky/header.mc', title => "$disp Profile", context => "Admin | Profile | $disp | "" . $job->get_name . """ ); $m->out(qq{
\n"); $m->comp('/widgets/wrappers/sharky/footer.mc', param => \%ARGS ); %perl> <%once>; my $class = "Bric::Util::Job"; my $widget = 'profile'; my $type = 'job'; my $disp = get_disp_name($type); %once> <%args> $id => undef %args> <%init>; # Do any redirects first. do_queued_redirect(); # Instantiate an object. my $job = $ARGS{obj} ? $ARGS{obj} : defined $id ? $class->lookup({ id => $id}) : $class->new; $id ||= $job->get_id; # Check authorization. chk_authz($job, $id ? READ : CREATE); my $no_edit = !chk_authz($job, ($id ? EDIT : CREATE), 1); my $no_del = !$id || $no_edit; my $i = 0; %init> <%doc> ############################################################################### =head1 NAME =head1 VERSION $LastChangedRevision$ =head1 DATE $LastChangedDate$ =head1 SYNOPSIS /admin/profile/job/dhandler - Distribution Job Profile. =head1 DESCRIPTION This element displays Distribution Job profiles for editing. %doc>