%#-- Begin HTML --# <& '/widgets/wrappers/sharky/header.mc', title => "$disp Profile", context => "Admin | Profile | $disp | $crumb" &>
<& '/widgets/wrappers/sharky/footer.mc', param => \%ARGS &> %#-- End HTML --# %#-- Once Section --# <%once>; my $section = 'admin'; my $type = 'site'; my $disp = get_disp_name($type); my $class = get_package_name($type); my $yes_no = sub { $_[0] ? 'Yes' : 'No'}; my ($no_edit, $no_del); %once> %#-- Args Section --# <%args> $id => undef %args> %#-- Init Section --# <%init>; $id ||= $ARGS{site_id}; # Instantiate an object. my $site = $ARGS{obj} ? $ARGS{obj} : defined $id ? $class->lookup({ id => $id}) : $class->new; $id ||= $site->get_id; # Check authorization. chk_authz($site, $id ? READ : CREATE); $no_edit = !chk_authz($site, ($id ? EDIT : CREATE), 1); $no_del = !$id || $no_edit; # Get the name for the breadcrumb trail. my $crumb = $site->get_name; $crumb = $crumb ? ""$crumb"" : 'New'; %init> <%doc> ################################################################################ =head1 NAME /admin/profile/workflow/dhandler - Interface for managing site profiles. =head1 VERSION $LastChangedRevision$ =head1 DATE $LastChangedDate$ =head1 DESCRIPTION This element handles the display for editing site profiles. %doc>