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

📄 edit.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 3 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1108707508',        'name' => 'bug/edit.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 24 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 27 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('bug/time.html.tmpl');    $output .=  "\n\n  <script type=\"text/javascript\" language=\"JavaScript\">\n  <!--\n\n  /* Outputs a link to call replyToComment(); used to reduce HTML output */\n  function addReplyLink(id) {\n    /* XXX this should really be updated to use the DOM Core's\n     * createElement, but finding a container isn't trivial */\n    document.write('[<a href=\"#add_comment\" onclick=\"replyToComment(' + \n        id + ');\">reply<' + '/a>]');\n  }\n\n  /* Adds the reply text to the `comment' textarea */\n  function replyToComment(id) {\n    /* pre id=\"comment_name_N\" */\n    var text_elem = document.getElementById('comment_text_'+id);\n    var text = getText(text_elem);\n\n    /* make sure we split on all newlines -- IE or Moz use \\r and \\n\n     * respectively */\n    text = text.split(/\\r|\\n/);\n\n    var replytext = \"\";\n    for (var i=0; i < text.length; i++) {\n        replytext += \"> \" + text[i] + \"\\n\"; \n    }\n\n    replytext = \"(In reply to comment #\" + id + \")\\n\" + replytext + \"\\n\";\n";    #line 63 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['UserInGroup', [ $stash->get(['Param', [ 'insidergroup' ]]) ]])) {    $output .=  "\n      if (document.getElementById('isprivate-'+id).checked) {\n          document.getElementById('newcommentprivacy').checked = 'checked';\n      }";    }        $output .=  "\n\n    /* <textarea id=\"comment\"> */\n    var textarea = document.getElementById('comment');\n    textarea.value += replytext;\n\n    textarea.focus();\n  }\n\n  if (!Node) {\n    /* MSIE doesn't define Node, so provide a compatibility array */\n    var Node = {\n        TEXT_NODE: 3,\n        ENTITY_REFERENCE_NODE: 5\n    };\n  }\n\n  /* Concatenates all text from element's childNodes. This is used\n   * instead of innerHTML because we want the actual text (and\n   * innerText is non-standard) */\n  function getText(element) {\n    var child, text = \"\";\n    for (var i=0; i < element.childNodes.length; i++) {\n        child = element.childNodes[i];\n        var type = child.nodeType;\n        if (type == Node.TEXT_NODE || type == Node.ENTITY_REFERENCE_NODE) {\n            text += child.nodeValue;\n        } else {\n            /* recurse into nodes of other types */\n            text += getText(child);\n        }\n    }\n    return text;\n  }\n";    #line 119 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['UserInGroup', [ $stash->get(['Param', [ 'timetrackinggroup' ]]) ]])) {    $output .=  "\n  var fRemainingTime = ";    #line 100 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'remaining_time', 0]);    $output .=  "; // holds the original value\n  function adjustRemainingTime() {\n     // subtracts time spent from remaining time\n     var new_time;\n\n     // prevent negative values if work_time > fRemainingTime\n     new_time =\n        Math.max(fRemainingTime - document.changeform.work_time.value, 0.0);\n     // get upto 2 decimal places\n     document.changeform.remaining_time.value =\n          Math.round(new_time * 100)/100;\n  }\n\n  function updateRemainingTime() {\n     // if the remaining time is changed manually, update fRemainingTime\n     fRemainingTime = document.changeform.remaining_time.value;\n  }\n";    }        $output .=  "\n\n  //-->\n  </script>\n\n<form name=\"changeform\" method=\"post\" action=\"process_bug.cgi\">\n\n  <input type=\"hidden\" name=\"delta_ts\" value=\"";    #line 126 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'delta_ts', 0]);    $output .=  "\">\n  <input type=\"hidden\" name=\"longdesclength\" value=\"";    #line 127 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'longdescs', 0, 'size', 0]);    $output .=  "\">\n  <input type=\"hidden\" name=\"id\" value=\"";    #line 128 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">\n\n";    $output .=  "\n\n  <table cellspacing=\"1\" cellpadding=\"1\" border=\"0\">\n    <tr>\n      <td align=\"right\">\n        <b>";    #line 135 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bug', 0]);    $output .=  "#:</b>\n      </td>\n      <td>\n        <a href=\"";    #line 138 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ]]);    $output .=  "show_bug.cgi?id=";    #line 138 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">";    #line 140 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "</a>";    #line 148 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['Param', [ 'usebugaliases' ]])) {    $output .=  "\n            <label title=\"a name for the ";    #line 143 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " that can be used in place of its ID number, f.e. when adding it to a list of dependencies\">\n              <b>alias:</b>\n              <input name=\"alias\" value=\"";    #line 145 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'alias', 0]);                &$filter($output);    };        $output .=  "\" size=\"20\" maxlength=\"20\">\n            </label>";    }        $output .=  "\n      </td>\n\n      <td>&nbsp;</td>\n\n      <td align=\"right\">\n        <b><u>H</u>ardware:</b>\n      </td>";    #line 157 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('select', { 'selname' => 'rep_platform', 'accesskey' => 'h' });    $output .=  "\n\n      <td align=\"right\">\n        <b>Reporter:</b>\n      </td>\n      <td>\n        <a href=\"mailto:";    #line 163 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'reporter', 0, 'email', 0]);                &$filter($output);    };        $output .=  "\">";    #line 165 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'reporter', 0, 'identity', 0]);                &$filter($output);    };        $output .=  "</a>\n      </td>\n    </tr>\n\n    <tr>\n      <td align=\"right\">\n        <b><u>P</u>roduct:</b>\n      </td>";    #line 174 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('select', { 'selname' => 'product', 'accesskey' => 'p' });    $output .=  "\n\n      <td align=\"right\">\n        <b><u>O</u>S:</b>\n      </td>";    #line 180 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('select', { 'selname' => 'op_sys', 'accesskey' => 'o' });    $output .=  "\n\n      <td align=\"right\">\n        <b><u>A</u>dd&nbsp;CC:</b>\n      </td>\n      <td>\n        <input name=\"newcc\" size=\"30\" value=\"\" accesskey=\"a\">\n      </td>\n    </tr>\n\n";    $output .=  "\n\n    <tr>\n      <td align=\"right\">\n        <b>\n          <a href=\"describecomponents.cgi?product=";    #line 195 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'product', 0]);                &$filter($output);    };        $output .=  "\">\n            Co<u>m</u>ponent</a>:\n        </b>\n      </td>";    #line 200 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('select', { 'selname' => 'component', 'accesskey' => 'm' });    $output .=  "\n\n      <td align=\"right\">\n        <b>Version:</b>\n      </td>";    #line 206 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('select', { 'selname' => 'version' });    $output .=  "\n\n      <td rowspan=\"4\" align=\"right\" valign=\"top\">\n        <b>CC:</b>\n      </td>\n      <td rowspan=\"4\" valign=\"top\">";    #line 228 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'cc', 0])) {    $output .=  "\n        <select name=\"cc\" multiple=\"multiple\" size=\"5\">";    #line 219 "template\en\default\bug\edit.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get(['bug', 0, 'cc', 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->{'c'} = $value;    $output .=  "\n          <option value=\"";    #line 217 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('c');                &$filter($output);    };        $output .=  "\">";    #line 217 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('c');                &$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        <br>\n        <input type=\"checkbox\" name=\"removecc\">Remove selected CCs\n        <br>";    }    else {    $output .=  "\n        <input type=\"hidden\" name=\"cc\" value=\"\">";    }        $output .=  "\n      </td>\n    </tr>\n\n    <tr>\n      <td align=\"right\">\n        <b>\n          <a href=\"page.cgi?id=fields.html#status\">Status</a>:\n        </b>\n      </td>\n      <td>";    #line 238 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'bug_status', 0]);                &$filter($output);    };        $output .=  "</td>\n      <td>&nbsp;</td>\n\n      <td align=\"right\">\n        <b><a href=\"page.cgi?id=fields.html#priority\">Pr<u>i</u>ority</a>:</b>\n      </td>";    #line 245 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('select', { 'selname' => 'priority', 'accesskey' => 'i' });    $output .=  "\n    </tr>\n\n    <tr>\n      <td align=\"right\">\n        <b>\n          <a href=\"page.cgi?id=fields.html#resolution\">Resolution</a>:\n        </b>\n      </td>\n      <td>";    #line 256 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'resolution', 0]);                &$filter($output);    };        #line 257 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'resolution', 0]) eq 'DUPLICATE') {    $output .=  "\n          of ";    #line 257 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " ";    #line 0 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('bug_link', [ $stash->get(['bug', 0, 'dup_id', 0]) ])                  || $context->throw($context->error);        $output .=  ('' . $stash->get(['bug', 0, 'dup_id', 0]));                &$filter($output);    };        }        $output .=  "\n      </td>\n      <td>&nbsp;</td>\n\n      <td align=\"right\">\n        <b><a href=\"page.cgi?id=fields.html#bug_severity\">Severity</a>:</b>\n      </td>";    #line 265 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('select', { 'selname' => 'bug_severity' });    $output .=  "\n\n    </tr>\n\n    <tr>\n      <td align=\"right\">\n        <b>\n          <a href=\"page.cgi?id=fields.html#assigned_to\">Assigned&nbsp;To</a>:\n        </b>\n      </td>\n      <td>";    #line 275 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'assigned_to', 0, 'identity', 0]);                &$filter($output);    };        $output .=  "</td>\n      <td>&nbsp;</td>\n";    #line 294 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['Param', [ 'usetargetmilestone' ]]) && $stash->get(['bug', 0, 'target_milestone', 0])) {    $output .=  "\n        <td align=\"right\">\n          <b>";    #line 286 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'milestoneurl', 0])) {    $output .=  "\n              <a href=\"";

⌨️ 快捷键说明

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