<%doc>
###############################################################################

=head1 NAME

dhandler -- the dhandler for media profiles

=head1 VERSION

$LastChangedRevision$

=head1 DATE

$LastChangedDate$

=head1 DESCRIPTION

<description>

=cut
</%doc>

%#-- Once Section --#
<%once>;
my $disp = get_disp_name('media');
</%once>

%#-- Args Section --#
<%args>
$checkout => undef
$version => undef
$return => undef
</%args>

%#-- Init Section --#
<%init>;
# Do any redirects first.
do_queued_redirect();

# Grab the ID.
$r->uri =~ m!/(\d+)/?$!;
my $id = $1;

# Grab the content.
my $content = $m->scomp('/widgets/media_prof/media_prof.mc',
	id      	=> $id,
	section 	=> 'meta',
	checkout	=> $checkout,
	version 	=> $version,
	return		=> $return);
</%init>

%#-- Begin HTML --#

<& "/widgets/wrappers/sharky/header.mc",
    title => "$disp Profile",
    context => "Workflow | Profile | $disp | " . $r->pnotes('media_prof|title')
&>

<form method="post" action="<% $r->uri %>" enctype="multipart/form-data" id="theForm" name="theForm" onSubmit="return confirmChanges('theForm')">
<% $content %>
</form>

<& /widgets/wrappers/sharky/footer.mc &>

%#-- End HTML --#


