⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 3 页
字号:
    $output .=  "\" value=\"1\"";    #line 534 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['group', 0, 'ison', 0])) {    $output .=  ('' . " checked=\"checked\"");    }        #line 534 "template\en\default\bug\edit.html.tmpl"    if (! $stash->get(['group', 0, 'ingroup', 0])) {    $output .=  ('' . " disabled=\"disabled\"");    }        $output .=  ">";    #line 536 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['group', 0, 'description', 0]);    $output .=  "\n      <br>";    }    ;                ($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";    #line 549 "template\en\default\bug\edit.html.tmpl"    if (! $stash->get('inallgroups')) {    $output .=  "\n      <b>\n        Only members of a group can change the visibility of ";    #line 544 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'abug', 0]);    $output .=  " for\n        that group\n      </b>\n    <br>";    }        $output .=  "\n";    #line 577 "template\en\default\bug\edit.html.tmpl"    if ($stash->get('inagroup')) {    $output .=  "\n      <p>\n        <b>Users in the roles selected below can always view this ";    #line 554 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ":</b>\n        <br>\n        <small>\n          (The assignee";    #line 562 "template\en\default\bug\edit.html.tmpl"    if (($stash->get(['Param', [ 'useqacontact' ]]))) {    $output .=  "\n             and QA contact";    }        $output .=  "\n          can always see ";    #line 563 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'abug', 0]);    $output .=  ", and this section does not take effect unless\n          the ";    #line 564 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " is restricted to at least one group.)\n        </small>\n      </p>\n\n      <p>\n        <input type=\"checkbox\" name=\"reporter_accessible\" value=\"1\"";    #line 571 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'reporter_accessible', 0])) {    $output .=  ' checked';    }        $output .=  ">Reporter\n        <input type=\"checkbox\" name=\"cclist_accessible\" value=\"1\"";    #line 574 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'cclist_accessible', 0])) {    $output .=  ' checked';    }        $output .=  ">CC List\n      </p>";    }        }        $output .=  "\n";    #line 580 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('bug/knob.html.tmpl');    $output .=  "\n\n";    $output .=  "\n\n<hr>\n<table>\n  <tr>\n    <td align=\"left\">\n      <b><a name=\"c0\" href=\"#c0\">Description</a>:</b>&nbsp;&nbsp;<script \n        type=\"text/javascript\" language=\"JavaScript\"><!-- \n          addReplyLink(0);\n        //--></script>\n    </td>\n    <td align=\"right\" width=\"100%\">\n      Opened: ";    #line 594 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('time')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'creation_ts', 0]);                &$filter($output);    };        $output .=  "\n    </td>\n  </tr>\n</table>\n";    #line 600 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('bug/comments.html.tmpl', { 'comments' => $stash->get(['bug', 0, 'longdescs', 0]), 'mode' => 'edit' });    $output .=  "\n\n</form>\n\n";    $output .=  "\n";    $output .=  "\n";    $output .=  "\n";        $output .=  "\n\n\n";    $output .=  "\n";    $output .=  "\n";    $output .=  "\n";        $output .=  "\n";        } };        if ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {        'dependencies' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        $output .=  "\n  <th align=\"right\">";        #line 613 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get(['terms', 0, 'Bug', 0]);        $output .=  " ";        #line 613 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get(['bug', 0, 'bug_id', 0]);        $output .=  " ";        #line 613 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get(['dep', 0, 'title', 0]);        $output .=  ":</th>\n  <td>";        #line 616 "template\en\default\bug\edit.html.tmpl"                # FOREACH         do {            my ($value, $error, $oldloop);            my $list = $stash->get(['bug', 0, $stash->get(['dep', 0, 'fieldname', 0]), 0]);                        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->{'depbug'} = $value;        #line 616 "template\en\default\bug\edit.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('bug_link', [ $stash->get('depbug') ])                      || $context->throw($context->error);                $output .=  $stash->get('depbug');                        &$filter($output);        };                #line 616 "template\en\default\bug\edit.html.tmpl"        $output .=  ' ';;                    ($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  </td>\n  <td>\n    <input name=\"";        #line 619 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get(['dep', 0, 'fieldname', 0]);        $output .=  "\" accesskey=\"";        #line 619 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get('accesskey');        $output .=  "\"\n           value=\"";        #line 620 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get(['bug', 0, $stash->get(['dep', 0, 'fieldname', 0]), 0, 'join', [ ', ' ]]);        $output .=  "\">\n  </td>";            } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'select' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        $output .=  "\n  <td>\n    <label for=\"";        #line 633 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get('selname');        $output .=  "\" accesskey=\"";        #line 633 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get('accesskey');        $output .=  "\">\n      <select name=\"";        #line 634 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get('selname');        $output .=  "\" id=\"";        #line 634 "template\en\default\bug\edit.html.tmpl"        $output .=  $stash->get('selname');        $output .=  "\">";        #line 642 "template\en\default\bug\edit.html.tmpl"                # FOREACH         do {            my ($value, $error, $oldloop);            my $list = $stash->get(['bug', 0, 'choices', 0, $stash->get('selname'), 0]);                        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->{'x'} = $value;        $output .=  "\n          <option value=\"";        #line 637 "template\en\default\bug\edit.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('x');                        &$filter($output);        };                $output .=  "\"";        #line 639 "template\en\default\bug\edit.html.tmpl"        if ($stash->get('x') eq $stash->get(['bug', 0, $stash->get('selname'), 0])) {        $output .=  ' selected';        }                $output .=  ">";        #line 639 "template\en\default\bug\edit.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('x');                        &$filter($output);        };                $output .=  "\n          </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    </label>\n  </td>\n  <td>&nbsp;</td>";            } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -