#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1051217122', 'name' => 'bug/create/create.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"; $output .= $context->process('global/header.html.tmpl', { 'title' => 'Enter Bug', 'h2' => 'This page lets you enter a new bug into Bugzilla.' }); $output .= "\n\n
\nfilter('html') || $context->throw($context->error); $output .= $stash->get('product'); &$filter($output); }; $output .= "\">\n\n\n\n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n "; $output .= "\n \n \n \n \n \n \n \n \n \n \n \n \n \n "; $stash->set('sel', { 'description' => 'Platform', 'name' => 'rep_platform' }); $output .= $context->include('select'); $output .= "\n "; $stash->set('sel', { 'description' => 'OS', 'name' => 'op_sys' }); $output .= $context->include('select'); $output .= "\n \n \n "; if ($stash->get(['Param', [ 'letsubmitterchoosepriority' ]])) { $stash->set('sel', { 'description' => 'Priority', 'name' => 'priority' }); $output .= $context->include('select'); } else { $output .= "\n filter('html') || $context->throw($context->error); $output .= $stash->get(['default', 0, 'priority', 0]); &$filter($output); }; $output .= "\">"; } $output .= "\n"; $stash->set('sel', { 'description' => 'Severity', 'name' => 'bug_severity' }); $output .= $context->include('select'); $output .= " \n \n \n \n \n \n \n"; if ($stash->get(['bug_status', 0, 'size', 0]) > 1) { $output .= " \n "; $stash->set('sel', { 'description' => 'Initial State', 'name' => 'bug_status' }); $output .= $context->include('select'); $output .= "\n \n \n "; } else { $output .= "\n get(['default', 0, 'bug_status', 0]); $output .= "\"> "; } $output .= "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n"; if ($stash->get(['Param', [ 'usebrowserinfo' ]])) { $output .= "\n \n \n \n "; } $output .= "\n\n

\n "; $output .= $context->include('bug/create/user-message.html.tmpl'); $output .= "\n

Reporter:"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('reporter'); &$filter($output); }; $output .= "Product:"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('product'); &$filter($output); }; $output .= "
\n Version:\n \n \n \n \n filter('url_quote') || $context->throw($context->error); $output .= $stash->get('product'); &$filter($output); }; $output .= "\">\n Component:\n \n \n \n
 
 
\n \n Assigned To:\n \n \n filter('html') || $context->throw($context->error); $output .= $stash->get('assigned_to'); &$filter($output); }; $output .= "\">\n (Leave blank to assign to default component owner)\n
Cc:\n filter('html') || $context->throw($context->error); $output .= $stash->get('cc'); &$filter($output); }; $output .= "\">\n
 
URL:\n filter('html') || $context->throw($context->error); $output .= $stash->get('bug_file_loc'); &$filter($output); }; $output .= "\">\n
Summary:\n filter('html') || $context->throw($context->error); $output .= $stash->get('short_desc'); &$filter($output); }; $output .= "\">\n
Description:\n \n
\n
"; if ($stash->get(['group', 0, 'size', 0])) { $output .= "\n
\n \n Only users in all of the selected groups can view this bug:\n \n
\n \n (Leave all boxes unchecked to make this a public bug.)\n \n
\n
\n\n "; # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('group'); 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->{'g'} = $value; $output .= "\n     \n get(['g', 0, 'bit', 0]); $output .= "\" value=\"1\""; if ($stash->get(['g', 0, 'checked', 0])) { $output .= ('' . " checked=\"checked\""); } $output .= ">"; $output .= $stash->get(['g', 0, 'description', 0]); $output .= "
";; ($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
"; } $output .= "\n
\n \n     \n \n
\n
\n We've made a guess at your operating system and platform. \n Please check them and, if we got it wrong, email "; $output .= $stash->get(['Param', [ 'maintainer' ]]); $output .= ".\n
\n \n
\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'select' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { if ($stash->get(['sel', 0, 'description', 0])) { $output .= "\n \n \n get(['sel', 0, 'name', 0]); $output .= "\">"; $output .= $stash->get(['sel', 0, 'description', 0]); $output .= ":\n \n "; } $output .= "\n \n \n \n "; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, }, });