blob: ea6084fe7de8a885d162d090ef0e67bccd38c1cc [file] [log] [blame]
#------------------------------------------------------------------------
# Compiled template generated by the Template Toolkit version 2.15
#------------------------------------------------------------------------
Template::Document->new({
METADATA => {
'modtime' => '1138010588',
'name' => 'admin/fieldvalues/confirm-delete.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/fieldvalues/confirm-delete.html.tmpl"
# CAPTURE
$stash->set('title', do {
my $output = '';
$output .= "Delete Value '";
#line 25 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('value');
&$filter($output);
};
$output .= "' from the \n '";
#line 26 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('field');
&$filter($output);
};
$output .= "' field";
$output;
});
$output .= "\n";
#line 28 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
$output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title') });
$output .= "\n\n<table border=\"1\" cellpadding=\"4\" cellspacing=\"0\">\n<tr bgcolor=\"#6666FF\">\n <th valign=\"top\" align=\"left\">Field</th>\n <th valign=\"top\" align=\"left\">Value</th>\n</tr>\n<tr>\n <td valign=\"top\">Field Name:</td>\n <td valign=\"top\">";
#line 39 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('field');
&$filter($output);
};
$output .= "</td>\n</tr>\n<tr>\n <td valign=\"top\">Field Value:</td>\n <td valign=\"top\">";
#line 43 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('value');
&$filter($output);
};
$output .= "</td>\n</tr>\n<tr>\n <td valign=\"top\">";
#line 46 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
$output .= $stash->get(['terms', 0, 'Bugs', 0]);
$output .= ":</td>\n <td valign=\"top\">";
#line 54 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
if ($stash->get('bug_count')) {
$output .= "\n <a title=\"List of ";
#line 49 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
$output .= $stash->get(['terms', 0, 'bugs', 0]);
$output .= " where '";
#line 49 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('field');
&$filter($output);
};
$output .= "' is '";
#line 50 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('value');
&$filter($output);
};
$output .= "'\"\n href=\"buglist.cgi?";
#line 51 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('field');
&$filter($output);
};
$output .= "=";
#line 51 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('value');
&$filter($output);
};
$output .= "\">";
#line 51 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('bug_count');
&$filter($output);
};
$output .= "</a>";
}
else {
$output .= "\n None";
}
$output .= "\n </td>\n</tr>\n</table>\n\n<h2>Confirmation</h2>\n ";
#line 82 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
if ($stash->get('bug_count')) {
$output .= "\n\n Sorry, there\n";
#line 69 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
if ($stash->get('bug_count') > 1) {
$output .= " \n are ";
#line 66 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('bug_count');
&$filter($output);
};
$output .= " ";
#line 66 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
$output .= $stash->get(['terms', 0, 'bugs', 0]);
$output .= " ";
}
else {
$output .= "\n is ";
#line 68 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('bug_count');
&$filter($output);
};
$output .= " ";
#line 68 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
$output .= $stash->get(['terms', 0, 'bug', 0]);
$output .= " ";
}
$output .= "\n\n that still have this field value. You must change the field value on\n <a title=\"List of ";
#line 72 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
$output .= $stash->get(['terms', 0, 'bugs', 0]);
$output .= " where '";
#line 72 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('field');
&$filter($output);
};
$output .= "' is '";
#line 72 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('value');
&$filter($output);
};
$output .= "'\"\n href=\"buglist.cgi?";
#line 73 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('field');
&$filter($output);
};
$output .= "=";
#line 73 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('value');
&$filter($output);
};
$output .= "\">";
#line 78 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
if ($stash->get('bug_count') > 1) {
$output .= "\n those ";
#line 75 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
$output .= $stash->get(['terms', 0, 'bugs', 0]);
$output .= " ";
}
else {
$output .= "\n that ";
#line 77 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
$output .= $stash->get(['terms', 0, 'bug', 0]);
}
$output .= "\n </a>\n to another value before you can delete this value.\n";
}
$output .= "\n";
#line 104 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
if ($stash->get('value_count') eq 1) {
$output .= "\n\n <p>Sorry, but '";
#line 86 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('value');
&$filter($output);
};
$output .= "' is the last value for\n '";
#line 87 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('field');
&$filter($output);
};
$output .= "', and so it can not be deleted.</p>\n";
}
else {
$output .= "\n";
#line 102 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
if ($stash->get('bug_count') eq 0) {
$output .= "\n\n <p>Do you really want to delete this value?<p>\n \n <form method=\"post\" action=\"editvalues.cgi\">\n <input type=\"submit\" value=\"Yes, delete\">\n <input type=\"hidden\" name=\"action\" value=\"delete\">\n <input type=\"hidden\" name=\"field\" value=\"";
#line 98 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('field');
&$filter($output);
};
$output .= "\">\n <input type=\"hidden\" name=\"value\" value=\"";
#line 99 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('value');
&$filter($output);
};
$output .= "\">\n </form>\n";
}
$output .= "\n";
}
$output .= "\n";
#line 106 "template/en/custom/admin/fieldvalues/confirm-delete.html.tmpl"
$output .= $context->process('admin/fieldvalues/footer.html.tmpl', { 'no_edit_link' => 1 });
$output .= "\n";
#line 110 "template/en/custom/admin/fieldvalues/confirm-delete.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 => {
},
});