%#-- 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 $class = 'Bric::Biz::Org::Source'; my $section = 'admin'; my $type = 'source'; my $disp = get_disp_name($type); %once> %#-- Shared Section --# <%shared>; my $used = { active => 1, name => 1, long_name => 1 }; %shared> %#-- Args Section --# <%args> $id => undef $new_org => undef %args> %#-- Init Section --# <%init>; # Instantiate an object. my $src = $ARGS{obj} ? $ARGS{obj} : defined $id ? $class->lookup({ id => $id}) : $class->new; $id ||= $src->get_id; # Check authorization. chk_authz($src, $id ? READ : CREATE); my $no_edit = !chk_authz($src, ($id ? EDIT : CREATE), 1); my $no_del = !$id || $no_edit; # Get the name for the breadcrumb trail. my $crumb = $src->get_source_name; $crumb = $crumb ? ""$crumb"" : 'New'; %init> <%doc> ############################################################################### =head1 NAME /admin/profile/source/dhandler - Interface for managing sources. =head1 VERSION $LastChangedRevision$ =head1 DATE $LastChangedDate$ =head1 DESCRIPTION This element handles the display for editing sources. %doc>