blob: 9af55f4d9441410dbfda7c51dc01165ebe24bcd9 [file] [log] [blame]
#------------------------------------------------------------------------
# Compiled template generated by the Template Toolkit version 2.15
#------------------------------------------------------------------------
Template::Document->new({
METADATA => {
'modtime' => '1138010588',
'name' => 'search/search-report-select.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 27 "template/en/custom/search/search-report-select.html.tmpl"
$output .= $context->process('global/field-descs.none.tmpl');
$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: {
#line 30 "template/en/custom/search/search-report-select.html.tmpl"
$stash->set('rep_fields', [ 'classification', 'product', 'component', 'version', 'rep_platform', 'op_sys', 'bug_status', 'resolution', 'bug_severity', 'priority', 'target_milestone', 'assigned_to', 'reporter', 'qa_contact', 'votes' ]);
$output .= "\n\n <select name=\"";
#line 35 "template/en/custom/search/search-report-select.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('name');
&$filter($output);
};
$output .= "\">\n <option value=\"\">&lt;none&gt;</option>\n ";
#line 46 "template/en/custom/search/search-report-select.html.tmpl"
# FOREACH
do {
my ($value, $error, $oldloop);
my $list = $stash->get('rep_fields');
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->{'field'} = $value;
#line 39 "template/en/custom/search/search-report-select.html.tmpl"
if ($stash->get('field') eq 'classification' && ! $stash->get(['Param', [ 'useclassification' ]])) {
($value, $error) = $list->get_next();
next LOOP;
}
#line 40 "template/en/custom/search/search-report-select.html.tmpl"
if ($stash->get('field') eq 'target_milestone' && ! $stash->get(['Param', [ 'usetargetmilestone' ]])) {
($value, $error) = $list->get_next();
next LOOP;
}
#line 41 "template/en/custom/search/search-report-select.html.tmpl"
if ($stash->get('field') eq 'qa_contact' && ! $stash->get(['Param', [ 'useqacontact' ]])) {
($value, $error) = $list->get_next();
next LOOP;
}
#line 42 "template/en/custom/search/search-report-select.html.tmpl"
if ($stash->get('field') eq 'votes' && ! $stash->get(['Param', [ 'usevotes' ]])) {
($value, $error) = $list->get_next();
next LOOP;
}
$output .= " \n <option value=\"";
#line 43 "template/en/custom/search/search-report-select.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('field');
&$filter($output);
};
$output .= "\" ";
#line 44 "template/en/custom/search/search-report-select.html.tmpl"
if ($stash->get(['default', 0, $stash->get('name'), 0, 0, 0]) eq $stash->get('field')) {
$output .= ' selected';
}
$output .= ">";
#line 45 "template/en/custom/search/search-report-select.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get(['field_descs', 0, $stash->get('field'), 0]) || $stash->get('field');
&$filter($output);
};
$output .= "</option>";;
($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 </select>";
} };
if ($@) {
$error = $context->catch($@, \$output);
die $error unless $error->type eq 'return';
}
return $output;
},
},
});