| #------------------------------------------------------------------------ |
| # Compiled template generated by the Template Toolkit version 2.15 |
| #------------------------------------------------------------------------ |
| |
| Template::Document->new({ |
| METADATA => { |
| 'modtime' => '1138010588', |
| 'name' => 'bug/process/verify-new-product.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\n"; |
| #line 37 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| # USE |
| $stash->set('Bugzilla', |
| $context->plugin('Bugzilla')); |
| #line 38 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $stash->set('cgi', $stash->get(['Bugzilla', 0, 'cgi', 0])); |
| $output .= "\n"; |
| #line 40 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $context->process('global/variables.none.tmpl'); |
| $output .= "\n"; |
| #line 42 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $context->process('global/header.html.tmpl', { 'title' => 'Verify New Product Details...' }); |
| $output .= "\n\n<form action=\"process_bug.cgi\" method=\"post\">\n"; |
| #line 47 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $context->process('global/hidden-fields.html.tmpl', { 'exclude' => ($stash->get('verify_fields') ? ('' . "^version|component|target_milestone") : '') }); |
| $output .= "\n\n"; |
| #line 87 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| if ($stash->get('verify_fields')) { |
| $output .= "\n <h3>Verify Version, Component"; |
| #line 52 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| if ($stash->get('use_target_milestone')) { |
| $output .= ', Target Milestone'; |
| } |
| |
| $output .= "</h3>\n\n <p>"; |
| #line 65 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| if ($stash->get('use_target_milestone')) { |
| $output .= "\n You are moving the "; |
| #line 56 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $stash->get(['terms', 0, 'bug', 0]); |
| $output .= "(s) to the product \n <b>"; |
| #line 57 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['cgi', 0, 'param', [ 'product' ]]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</b>,\n and the version, component, and/or target milestone fields are no longer\n correct. Please set the correct version, component, and target milestone now:"; |
| } |
| else { |
| $output .= "\n You are moving the "; |
| #line 61 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $stash->get(['terms', 0, 'bug', 0]); |
| $output .= "(s) to the product \n <b>"; |
| #line 62 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['cgi', 0, 'param', [ 'product' ]]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</b>,\n and the version and component fields are no longer correct.\n Please set the correct version and component now:"; |
| } |
| |
| $output .= "\n <p>\n\n <table>\n <tr>\n <td>\n <b>Version:</b><br>"; |
| #line 72 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $context->process('global/select-menu.html.tmpl', { 'name' => 'version', 'options' => $stash->get('versions'), 'default' => $stash->get(['defaults', 0, 'version', 0]) }); |
| $output .= "\n </td>\n <td>\n <b>Component:</b><br>"; |
| #line 76 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $context->process('global/select-menu.html.tmpl', { 'name' => 'component', 'options' => $stash->get('components'), 'default' => $stash->get(['defaults', 0, 'component', 0]) }); |
| $output .= "\n </td>"; |
| #line 83 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| if ($stash->get('use_target_milestone')) { |
| $output .= "\n <td>\n <b>Target Milestone:</b><br>"; |
| #line 81 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $context->process('global/select-menu.html.tmpl', { 'name' => 'target_milestone', 'options' => $stash->get('milestones'), 'default' => $stash->get(['defaults', 0, 'target_milestone', 0]) }); |
| $output .= "\n </td>"; |
| } |
| |
| $output .= "\n </tr>\n </table>\n"; |
| } |
| |
| $output .= "\n"; |
| #line 102 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| if ($stash->get('verify_bug_group')) { |
| $output .= "\n <h3>Verify "; |
| #line 90 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $stash->get(['terms', 0, 'Bug', 0]); |
| $output .= " Group</h3>\n\n <p>\n Do you want to add the "; |
| #line 93 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $stash->get(['terms', 0, 'bug', 0]); |
| $output .= " to its new product's default groups (if any)?\n </p>\n\n <p>\n <input type=\"radio\" name=\"addtonewgroup\" value=\"no\"><b>no</b><br>\n <input type=\"radio\" name=\"addtonewgroup\" value=\"yes\"><b>yes</b><br>\n <input type=\"radio\" name=\"addtonewgroup\" value=\"yesifinold\" checked=\"checked\">\n <b>yes, but only if the "; |
| #line 100 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $stash->get(['terms', 0, 'bug', 0]); |
| $output .= " was in any of its old product's default groups</b><br>\n </p>"; |
| } |
| |
| $output .= "\n\n<input type=\"submit\" value=\"Commit\">\n\n</form>\n<hr>\n<a href=\"query.cgi\">Cancel and Return to the Search Page</a>\n"; |
| #line 110 "template/en/custom/bug/process/verify-new-product.html.tmpl" |
| $output .= $context->process('global/footer.html.tmpl'); |
| $output .= "\n\n"; |
| } }; |
| if ($@) { |
| $error = $context->catch($@, \$output); |
| die $error unless $error->type eq 'return'; |
| } |
| |
| return $output; |
| }, |
| DEFBLOCKS => { |
| |
| }, |
| }); |