blob: 24145d5f964285c771d28b7e2c92290aa0f90b3a [file] [log] [blame]
#------------------------------------------------------------------------
# Compiled template generated by the Template Toolkit version 2.15
#------------------------------------------------------------------------
Template::Document->new({
METADATA => {
'modtime' => '1138010588',
'name' => 'admin/components/edit.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 36 "template/en/custom/admin/components/edit.html.tmpl"
$output .= $context->process('global/variables.none.tmpl');
$output .= "\n";
#line 38 "template/en/custom/admin/components/edit.html.tmpl"
# CAPTURE
$stash->set('title', do {
my $output = '';
$output .= "Edit Component '";
#line 38 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('name');
&$filter($output);
};
$output .= "'";
$output;
});
#line 39 "template/en/custom/admin/components/edit.html.tmpl"
$output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title') });
$output .= "\n\n<form method=\"post\" action=\"editcomponents.cgi\">\n <table border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n\n <tr>\n <td valign=\"top\">Component:</td>\n <td><input size=\"64\" maxlength=\"64\" name=\"component\" value=\"";
#line 49 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('name');
&$filter($output);
};
$output .= "\"></td>\n </tr>\n <tr>\n <td valign=\"top\">Component Description:</td>\n <td><textarea rows=\"4\" cols=\"64\" wrap=\"virtual\"\n name=\"description\">";
#line 54 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('description');
&$filter($output);
};
$output .= "</textarea>\n </td>\n </tr>\n <tr>\n <td valign=\"top\"><label for=\"initialowner\">Default Assignee:</label></td>\n <td>";
#line 60 "template/en/custom/admin/components/edit.html.tmpl"
$output .= $context->include('global/userselect.html.tmpl', { 'name' => 'initialowner', 'id' => 'initialowner', 'value' => $stash->get('initialowner'), 'size' => 64, 'emptyok' => 1 });
$output .= "\n </td>\n ";
#line 82 "template/en/custom/admin/components/edit.html.tmpl"
if ($stash->get(['Param', [ 'useqacontact' ]])) {
$output .= "\n </tr>\n <tr>\n <td valign=\"top\"><label for=\"initialqacontact\">Default QA contact:</label></td>\n <td>";
#line 74 "template/en/custom/admin/components/edit.html.tmpl"
$output .= $context->include('global/userselect.html.tmpl', { 'name' => 'initialqacontact', 'id' => 'initialqacontact', 'value' => $stash->get('initialqacontact'), 'size' => 64, 'emptyok' => 1 });
$output .= "\n </td>";
}
$output .= "\n \n </tr>\n <tr>\n <td>";
#line 86 "template/en/custom/admin/components/edit.html.tmpl"
$output .= $stash->get(['terms', 0, 'Bugs', 0]);
$output .= ":</td>\n <td>";
#line 95 "template/en/custom/admin/components/edit.html.tmpl"
if ($stash->get('bug_count') > 0) {
$output .= "\n <a title=\"Bugs in component '";
#line 89 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('name');
&$filter($output);
};
$output .= "'\"\n href=\"buglist.cgi?component=";
#line 91 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('name');
&$filter($output);
};
$output .= "&amp;product=";
#line 92 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('product');
&$filter($output);
};
$output .= "\">";
#line 92 "template/en/custom/admin/components/edit.html.tmpl"
$output .= $stash->get('bug_count');
$output .= "</a>";
}
else {
$output .= "\n None";
}
$output .= "\n </td>\n </tr>\n\n </table>\n\n\n <input type=\"hidden\" name=\"componentold\" value=\"";
#line 103 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('name');
&$filter($output);
};
$output .= "\">\n <input type=\"hidden\" name=\"descriptionold\" value=\"";
#line 105 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('description');
&$filter($output);
};
$output .= "\">\n <input type=\"hidden\" name=\"initialownerold\" value=\"";
#line 107 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('initialowner');
&$filter($output);
};
$output .= "\">\n <input type=\"hidden\" name=\"initialqacontactold\" value=\"";
#line 109 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('initialqacontact');
&$filter($output);
};
$output .= "\">\n <input type=\"hidden\" name=\"action\" value=\"update\">\n <input type=\"hidden\" name=\"product\" value=\"";
#line 111 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('product');
&$filter($output);
};
$output .= "\">\n <input type=\"submit\" value=\"Update\"> or <a \n href=\"editcomponents.cgi?action=del&amp;product=";
#line 114 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('product');
&$filter($output);
};
$output .= "&amp;component=";
#line 115 "template/en/custom/admin/components/edit.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('name');
&$filter($output);
};
$output .= "\">Delete</a> this component.\n\n\n</form>\n";
#line 120 "template/en/custom/admin/components/edit.html.tmpl"
$output .= $context->process('admin/components/footer.html.tmpl', { 'no_edit_component_link' => 1 });
$output .= "\n";
#line 123 "template/en/custom/admin/components/edit.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 => {
},
});