| #------------------------------------------------------------------------ |
| # Compiled template generated by the Template Toolkit version 2.15 |
| #------------------------------------------------------------------------ |
| |
| Template::Document->new({ |
| METADATA => { |
| 'modtime' => '1138010588', |
| 'name' => 'admin/components/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\n"; |
| $output .= "\n "; |
| #line 26 "template/en/custom/admin/components/create.html.tmpl" |
| |
| # CAPTURE |
| $stash->set('title', do { |
| my $output = ''; |
| $output .= "Add component to Product '"; |
| #line 26 "template/en/custom/admin/components/create.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('product'); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "'"; |
| $output; |
| }); |
| |
| #line 28 "template/en/custom/admin/components/create.html.tmpl" |
| |
| # CAPTURE |
| $stash->set('h2', do { |
| my $output = ''; |
| $output .= "This page allows you to add a new component to product\n '"; |
| #line 28 "template/en/custom/admin/components/create.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('product'); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "'."; |
| $output; |
| }); |
| |
| #line 29 "template/en/custom/admin/components/create.html.tmpl" |
| $output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title'), 'h2' => $stash->get('h2') }); |
| $output .= "\n\n<form method=\"post\" action=\"editcomponents.cgi\">\n <table border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n <tr>\n <th align=\"right\">Component:</th>\n <td><input size=\"64\" maxlength=\"64\" name=\"component\" value=\"\"></td>\n </tr>\n <tr>\n <th align=\"right\">Description:</th>\n <td>\n <textarea rows=\"4\" cols=\"64\" wrap=\"virtual\"\n name=\"description\"></textarea>\n </td>\n </tr>\n <tr>\n <th align=\"right\"><label for=\"initialowner\">Default Assignee:</label></th>\n <td>"; |
| #line 50 "template/en/custom/admin/components/create.html.tmpl" |
| $output .= $context->include('global/userselect.html.tmpl', { 'name' => 'initialowner', 'id' => 'initialowner', 'value' => '', 'size' => 64, 'emptyok' => 1 }); |
| $output .= "\n </td>\n </tr>"; |
| #line 73 "template/en/custom/admin/components/create.html.tmpl" |
| if ($stash->get(['Param', [ 'useqacontact' ]])) { |
| $output .= "\n <tr>\n <th align=\"right\">\n <label for=\"initialqacontact\">Default QA Contact:</label></th>\n <td>"; |
| #line 64 "template/en/custom/admin/components/create.html.tmpl" |
| $output .= $context->include('global/userselect.html.tmpl', { 'name' => 'initialqacontact', 'id' => 'initialqacontact', 'value' => '', 'size' => 64, 'emptyok' => 1 }); |
| $output .= "\n </td>\n </tr>"; |
| } |
| |
| $output .= "\n </table>\n <hr>\n <input type=\"submit\" value=\"Add\">\n <input type=\"hidden\" name=\"action\" value=\"new\">\n <input type=\"hidden\" name='open_name' value='All Open'>\n <input type=\"hidden\" name='closed_name' value='All Closed'>\n <input type=\"hidden\" name='product' value=\""; |
| #line 80 "template/en/custom/admin/components/create.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('product'); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\">\n\n</form>\n"; |
| #line 84 "template/en/custom/admin/components/create.html.tmpl" |
| $output .= $context->process('admin/components/footer.html.tmpl'); |
| $output .= "\n"; |
| #line 86 "template/en/custom/admin/components/create.html.tmpl" |
| $output .= $context->process('global/footer.html.tmpl'); |
| $output .= "\n"; |
| } }; |
| if ($@) { |
| $error = $context->catch($@, \$output); |
| die $error unless $error->type eq 'return'; |
| } |
| |
| return $output; |
| }, |
| DEFBLOCKS => { |
| |
| }, |
| }); |