📄 create.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1105129904', 'name' => 'bug/create/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"; #line 25 "template\en\default\bug\create\create.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 0 "template\en\default\bug\create\create.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => ("Enter " . $stash->get(['terms', 0, 'Bug', 0])), 'h2' => ("This page lets you enter a new " . $stash->get(['terms', 0, 'bug', 0]) . " into " . $stash->get(['terms', 0, 'Bugzilla', 0]) . "."), 'onload' => 'set_assign_to();' }); #line 32 "template\en\default\bug\create\create.html.tmpl" # USE $stash->set('Bugzilla', $context->plugin('Bugzilla')); $output .= "\n\n<script type=\"text/javascript\" language=\"JavaScript\">\n<!--\n\nvar default_owners = new Array("; #line 37 "template\en\default\bug\create\create.html.tmpl" $output .= $stash->get(['component_', 0, 'size', 0]); $output .= ");\nvar components = new Array("; #line 38 "template\en\default\bug\create\create.html.tmpl" $output .= $stash->get(['component_', 0, 'size', 0]); $output .= ");"; #line 40 "template\en\default\bug\create\create.html.tmpl" $stash->set('count', 0); #line 44 "template\en\default\bug\create\create.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('component_'); 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->{'c'} = $value; $output .= "\n components["; #line 41 "template\en\default\bug\create\create.html.tmpl" $output .= $stash->get('count'); $output .= "] = \""; #line 41 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['c', 0, 'name', 0]); &$filter($output); }; $output .= "\";\n default_owners["; #line 42 "template\en\default\bug\create\create.html.tmpl" $output .= $stash->get('count'); $output .= "] = \""; #line 42 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['c', 0, 'default_login', 0]); &$filter($output); }; $output .= "\";"; #line 44 "template\en\default\bug\create\create.html.tmpl" $stash->set('count', $stash->get('count') + 1); ; ($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 .= "\nvar last_default_owner;\nfunction set_assign_to() {\n // Based on the selected component, fill the \"Assign To:\" field\n // with the default component owner.\n var form = document.Create;\n var assigned_to = form.assigned_to.value;\n var index = -1;\n if (form.component.type == 'select-one') {\n index = form.component.selectedIndex;\n } else if (form.component.type == 'hidden') {\n // Assume there is only one component in the list\n index = 0;\n }\n if (index != -1) {\n var owner = default_owners[index];\n var component = components[index];\n if (assigned_to == last_default_owner\n || assigned_to == owner\n || assigned_to == '') {\n form.assigned_to.value = owner;\n last_default_owner = owner;\n }\n }\n}\n-->\n</script>\n\n<form name=\"Create\" id=\"Create\" method=\"post\" action=\"post_bug.cgi\">\n<input type=\"hidden\" name=\"product\" value=\""; #line 73 "template\en\default\bug\create\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<table cellspacing=\"2\" cellpadding=\"0\" border=\"0\">\n\n <tr>\n <td><br></td>\n </tr>\n\n <tr>\n <td></td>\n <td colspan=\"3\">\n "; #line 86 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('bug/create/user-message.html.tmpl'); $output .= "\n </td>\n </tr>\n\n <tr>\n <td><br></td>\n </tr>\n\n <tr>\n <td align=\"right\" valign=\"top\"><strong>Reporter:</strong></td>\n <td valign=\"top\">"; #line 96 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['Bugzilla', 0, 'user', 0, 'login', 0]); &$filter($output); }; $output .= "</td>\n\n <td align=\"right\" valign=\"top\"><strong>Product:</strong></td>\n <td valign=\"top\">"; #line 99 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('product'); &$filter($output); }; $output .= "</td>\n </tr>\n\n "; $output .= "\n <tr>\n <td align=\"right\" valign=\"top\">\n <strong>Version:</strong>\n </td>\n <td>\n <select name=\"version\" size=\"5\">"; #line 116 "template\en\default\bug\create\create.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('version'); 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->{'v'} = $value; $output .= "\n <option value=\""; #line 111 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('v'); &$filter($output); }; $output .= "\""; #line 113 "template\en\default\bug\create\create.html.tmpl" if ($stash->get('v') eq $stash->get(['default', 0, 'version', 0])) { $output .= ('' . " selected=\"selected\""); } $output .= ">"; #line 113 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('v'); &$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>\n </td>\n\n <td align=\"right\" valign=\"top\">\n <strong>\n <a href=\"describecomponents.cgi?product="; #line 122 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('product'); &$filter($output); }; $output .= "\">\n Component</a>:\n </strong>\n </td>\n <td>\n <select name=\"component\" onchange=\"set_assign_to();\" size=\"5\">"; #line 137 "template\en\default\bug\create\create.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('component_'); 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->{'c'} = $value; $output .= "\n <option value=\""; #line 130 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['c', 0, 'name', 0]); &$filter($output); }; $output .= "\""; #line 132 "template\en\default\bug\create\create.html.tmpl" if ($stash->get(['c', 0, 'name', 0]) eq $stash->get(['default', 0, 'component_', 0])) { $output .= ('' . " selected=\"selected\""); } $output .= ">"; #line 134 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['c', 0, 'name', 0]); &$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>\n </td>\n </tr>\n\n <tr>\n <td> </td>\n <td colspan=\"3\"></td>\n </tr>\n\n <tr>"; #line 149 "template\en\default\bug\create\create.html.tmpl" $stash->set('sel', { 'description' => 'Platform', 'name' => 'rep_platform' }); #line 149 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('select'); $output .= "\n"; #line 152 "template\en\default\bug\create\create.html.tmpl" $stash->set('sel', { 'description' => 'OS', 'name' => 'op_sys' }); #line 152 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('select'); $output .= "\n </tr>\n\n <tr>"; #line 161 "template\en\default\bug\create\create.html.tmpl" if ($stash->get(['Param', [ 'letsubmitterchoosepriority' ]])) { #line 157 "template\en\default\bug\create\create.html.tmpl" $stash->set('sel', { 'description' => 'Priority', 'name' => 'priority' }); #line 157 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('select'); } else { $output .= "\n <input type=\"hidden\" name=\"priority\"\n value=\""; #line 159 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['default', 0, 'priority', 0]); &$filter($output); }; $output .= "\">"; } $output .= "\n"; #line 164 "template\en\default\bug\create\create.html.tmpl" $stash->set('sel', { 'description' => 'Severity', 'name' => 'bug_severity' }); #line 164 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('select'); $output .= "\n </tr>\n\n <tr>\n <td> </td>\n <td colspan=\"3\"></td>\n </tr>\n\n <tr>"; #line 180 "template\en\default\bug\create\create.html.tmpl" if ($stash->get(['bug_status', 0, 'size', 0]) <= 1) { $output .= "\n <input type=\"hidden\" name=\"bug_status\" \n value=\""; #line 176 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['default', 0, 'bug_status', 0]); &$filter($output); }; $output .= "\">\n <td align=\"right\" valign=\"top\"><strong>Initial State:</strong></td>\n <td valign=\"top\">"; #line 178 "template\en\default\bug\create\create.html.tmpl"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -