#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1020712618', 'name' => 'admin/attachstatus/list.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n"; $output .= $context->process('global/header.html.tmpl', { 'title' => 'Administer Attachment Statuses', 'message' => $stash->get('message'), 'style' => ' th { text-align: left; } ' }); $output .= "\n\n\n\n \n \n \n \n \n \n \n"; # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('statusdefs'); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'statusdef'} = $value; $output .= "\n\n \n \n \n \n \n \n \n";; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n\n \n \n \n \n\n
NameDescriptionSort KeyProductAction(s)
"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['statusdef', 0, 'name', 0]); &$filter($output); }; $output .= ""; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['statusdef', 0, 'description', 0]); &$filter($output); }; $output .= ""; $output .= $stash->get(['statusdef', 0, 'sortkey', 0]); $output .= ""; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['statusdef', 0, 'product', 0]); &$filter($output); }; $output .= "\n get(['statusdef', 0, 'id', 0]); $output .= "\">\n Edit\n  | \n get(['statusdef', 0, 'id', 0]); $output .= "\" \n onclick=\"return confirmDelete("; $output .= $stash->get(['statusdef', 0, 'attachcount', 0]); $output .= ",\n '"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['statusdef', 0, 'name', 0]); &$filter($output); }; $output .= "',"; $output .= $stash->get(['statusdef', 0, 'id', 0]); $output .= ");\">\n Delete\n
\n Create\n
\n\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { }, });