?? create.html.tmpl
字號:
$output .= "\n\n <tr>\n <td> </td>\n <td colspan=\"3\"> </td>\n </tr>\n\n <tr>"; #line 271 "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 265 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['default', 0, 'bug_status', 0]); &$_tt_filter($output); }; $output .= "\">\n <td align=\"right\" valign=\"top\"><strong>Initial State:</strong></td>\n <td valign=\"top\">"; #line 267 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, $stash->get(['default', 0, 'bug_status', 0]), 0]); &$_tt_filter($output); }; $output .= "</td>"; } else { #line 269 "template\en\default\bug\create\create.html.tmpl" $stash->set('sel', { 'description' => 'Initial State', 'name' => 'bug_status' }); #line 270 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('select'); } $output .= "\n <td> </td>\n "; #line 274 "template\en\default\bug\create\create.html.tmpl" $stash->set('num_rows', 6 + ($stash->get(['Param', [ 'useqacontact' ]]) ? 1 : 0) + ($stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'timetrackinggroup' ]]) ]]) ? 3 : 0) + ($stash->get(['Param', [ 'usebugaliases' ]]) ? 1 : 0)); $output .= "\n <td rowspan=\""; #line 278 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('num_rows'); &$_tt_filter($output); }; $output .= "\" valign=\"top\">"; #line 295 "template\en\default\bug\create\create.html.tmpl" if ($stash->get(['product', 0, 'flag_types', 0, 'bug', 0, 'size', 0]) > 0) { #line 280 "template\en\default\bug\create\create.html.tmpl" $stash->set('display_flag_headers', 0); #line 281 "template\en\default\bug\create\create.html.tmpl" $stash->set('any_flags_requesteeble', 0); $output .= "\n"; #line 287 "template\en\default\bug\create\create.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['product', 0, 'flag_types', 0, 'bug', 0]); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'flag_type'} = $_tt_value; #line 284 "template\en\default\bug\create\create.html.tmpl" if (!($stash->get(['flag_type', 0, 'is_active', 0]))) { ($_tt_value, $_tt_error) = $_tt_list->get_next(); next LOOP; } #line 285 "template\en\default\bug\create\create.html.tmpl" $stash->set('display_flag_headers', 1); #line 286 "template\en\default\bug\create\create.html.tmpl" if ($stash->get(['flag_type', 0, 'is_requestable', 0]) && $stash->get(['flag_type', 0, 'is_requesteeble', 0])) { $stash->set('any_flags_requesteeble', 1); } ; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n"; #line 294 "template\en\default\bug\create\create.html.tmpl" if ($stash->get('display_flag_headers')) { #line 290 "template\en\default\bug\create\create.html.tmpl" $output .= $context->process('flag/list.html.tmpl', { 'flag_types' => $stash->get(['product', 0, 'flag_types', 0, 'bug', 0]), 'any_flags_requesteeble' => $stash->get('any_flags_requesteeble'), 'flag_table_id' => 'bug_flags' }); } } $output .= "\n </td>\n </tr>\n\n <tr>\n <td align=\"right\">\n <strong>\n <a href=\"page.cgi?id=fields.html#assigned_to\">Assign To</a>:\n </strong>\n </td>\n <td colspan=\"2\">"; #line 306 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('global/userselect.html.tmpl', { 'name' => 'assigned_to', 'value' => $stash->get('assigned_to'), 'disabled' => $stash->get('assigned_to_disabled'), 'size' => 32, 'emptyok' => 1 }); $output .= "\n <noscript>(Leave blank to assign to component's default assignee)</noscript>\n </td>\n </tr>\n "; #line 331 "template\en\default\bug\create\create.html.tmpl" if ($stash->get(['Param', [ 'useqacontact' ]])) { $output .= "\n <tr>\n <td align=\"right\"><strong>QA Contact:</strong></td>\n <td colspan=\"2\">"; #line 321 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('global/userselect.html.tmpl', { 'name' => 'qa_contact', 'value' => $stash->get('qa_contact'), 'disabled' => $stash->get('qa_contact_disabled'), 'size' => 32, 'emptyok' => 1 }); $output .= "\n <noscript>(Leave blank to assign to default qa contact)</noscript>\n </td>\n </tr>"; } $output .= "\n\n <tr>\n <td align=\"right\"><strong>Cc:</strong></td>\n <td colspan=\"2\">"; #line 336 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('global/userselect.html.tmpl', { 'name' => 'cc', 'value' => $stash->get('cc'), 'disabled' => $stash->get('cc_disabled'), 'size' => 45, 'multiple' => 5 }); $output .= "\n </td>\n </tr>\n\n <tr>\n <th align=\"right\">Default CC:</th>\n <td colspan=\"2\">\n <div id=\"initial_cc\">\n <!-- This has to happen after everything above renders,\n and onload doesn't work. So this is as good a place\n as any to put it. -->\n <script type=\"text/javascript\">set_assign_to();</script>\n </div>\n </td>\n </tr>\n \n <tr>\n <td> </td>\n <td colspan=\"2\"></td>\n </tr>\n"; #line 382 "template\en\default\bug\create\create.html.tmpl" if ($stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'timetrackinggroup' ]]) ]])) { $output .= "\n <tr>\n <td align=\"right\"><strong>Estimated Hours:</strong></td>\n <td colspan=\"2\">\n <input name=\"estimated_time\" size=\"6\" maxlength=\"6\" value=\"0.0\">\n </td>\n </tr>\n <tr>\n <td align=\"right\"><strong>Deadline:</strong></td>\n <td colspan=\"2\">\n <input name=\"deadline\" size=\"10\" maxlength=\"10\" value=\""; #line 373 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('deadline'); &$_tt_filter($output); }; $output .= "\">\n <small>(YYYY-MM-DD)</small>\n </td>\n </tr>\n\n <tr>\n <td> </td>\n <td colspan=\"2\"></td>\n </tr>"; } $output .= "\n"; #line 391 "template\en\default\bug\create\create.html.tmpl" if ($stash->get(['Param', [ 'usebugaliases' ]])) { $output .= "\n <tr>\n <td align=\"right\"><strong>Alias:</strong></td>\n <td colspan=\"2\">\n <input name=\"alias\" size=\"20\">\n </td>\n </tr>"; } $output .= "\n\n <tr>\n <td align=\"right\"><strong>URL:</strong></td>\n <td colspan=\"2\">\n <input name=\"bug_file_loc\" size=\"60\"\n value=\""; #line 397 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('bug_file_loc'); &$_tt_filter($output); }; $output .= "\">\n </td>\n </tr>\n"; #line 401 "template\en\default\bug\create\create.html.tmpl" # USE $stash->set('Bugzilla', $context->plugin('Bugzilla')); #line 408 "template\en\default\bug\create\create.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['Bugzilla', 0, 'get_fields', [ { 'obsolete' => 0, 'custom' => 1, 'enter_bug' => 1 } ]]); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'field'} = $_tt_value; #line 404 "template\en\default\bug\create\create.html.tmpl" $stash->set('value', $stash->get([$stash->get(['field', 0, 'name', 0]), 0, 'defined', 0]) ? $stash->get($stash->get(['field', 0, 'name', 0])) : ''); $output .= "\n <tr>"; #line 406 "template\en\default\bug\create\create.html.tmpl" $output .= $context->process('bug/field.html.tmpl', { 'editable' => 1, 'value_span' => 2 }); $output .= "\n </tr>";; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n\n <tr>\n <td align=\"right\"><strong>Summary:</strong></td>\n <td colspan=\"2\">\n <input name=\"short_desc\" size=\"60\" value=\""; #line 413 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('short_desc'); &$_tt_filter($output); }; $output .= "\"\n maxlength=\"255\">\n </td>\n </tr>\n\n <tr><td align=\"right\" valign=\"top\"><strong>Description:</strong></td>\n <td colspan=\"3\">"; #line 429 "template\en\default\bug\create\create.html.tmpl" # CAPTURE $stash->set('defaultcontent', do { my $output = ''; #line 425 "template\en\default\bug\create\create.html.tmpl" if ($stash->get('cloned_bug_id')) { $output .= "\n+++ This "; #line 422 "template\en\default\bug\create\create.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " was initially created as a clone of "; #line 422 "template\en\default\bug\create\create.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " #"; #line 422 "template\en\default\bug\create\create.html.tmpl" $output .= $stash->get('cloned_bug_id'); $output .= " +++\n\n"; } #line 428 "template\en\default\bug\create\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get('comment'); &$_tt_filter($output); }; $output; }); #line 430 "template\en\default\bug\create\create.html.tmpl" $output .= $context->include('global/textarea.html.tmpl', { 'name' => 'comment', 'id' => 'comment', 'minrows' => 10, 'maxrows' => 25, 'cols' => '80', 'defaultcontent' => $stash->get('defaultcontent') }); $output .= "\n <br>\n </td>\n </tr>\n"; #line 454 "template\en\default\bug\create\create.html.tmpl" if ($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'insidergroup' ]]) ]])) { $output .= "\n <tr>\n <td></td>\n <td colspan=\"3\">\n \n <input type=\"checkbox\" id=\"commentprivacy\" name=\"commentprivacy\""; #line 448 "template\en\default\bug\create\create.html.tmpl" if ($stash->get('commentprivacy')) { $output .= ('' . " checked=\"checked\""); } $output .= ">\n <label for=\"commentprivacy\">\n Initial Description is Private\n </label>\n </td>\n </tr>"; } $output .= "\n\n <tr>\n <th align=\"right\" valign=\"top\">Attachment:</th>\n <td colspan=\"3\">\n <script type=\"text/javascript\">\n <!--\n document.write( '<div id=\"attachment_false\">'\n + '<input type=\"button\" value=\"Add an attachment\" '\n + 'onClick=\"handleWantsAttachment(true)\"> '\n + '<em style=\"display: none\">This button has no '\n + 'functionality for you because your browser does '\n + 'not support CSS or does not use it.<\\/em>'\n + '<\\/div>'\n + '<div id=\"attachment_true\" style=\"display: none\">'\n + '<input type=\"button\" '\n + 'value=\"Don\\'t add an attachment \" '\n + 'onClick=\"handleWantsAttachment(false)\">');\n //-->\n </script>\n <fieldset>\n <legend>Add an attachment</legend>\n <table class=\"attachment_entry\">"; #line 477 "template\en\default\bug\create\create.html.tmpl" $output .= $context->process('attachment/createformcontents.html.tmpl', { 'flag_types' => $stash->get(['product', 0, 'flag_types', 0, 'attachment', 0]), 'any_flags_requesteeble' => 1, 'flag_table_id' => 'attachment_flags' }); $output .= "\n </table>\n </fieldset>\n <script type=\"text/javascript\">\n <!--\n document.write('<\\/div>');\n //-->\n </script>\n </td>\n </tr>\n"; #line 520 "template\en\default\bug\create\create.html.tmpl"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -