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

📄 create.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
        # 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 .=  "</td>";    }    else {    #line 180 "template\en\default\bug\create\create.html.tmpl"    $stash->set('sel', { 'description' => 'Initial State', 'name' => 'bug_status'  });        #line 180 "template\en\default\bug\create\create.html.tmpl"    $output .=  $context->include('select');    }        $output .=  "\n    <td colspan=\"2\"></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=\"3\">\n      <input name=\"assigned_to\" size=\"32\" \n             value=\"";    #line 192 "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('assigned_to');                &$filter($output);    };        $output .=  "\">\n      <noscript>(Leave blank to assign to default component owner)</noscript>\n    </td>\n  </tr>\n  \n  <tr>\n    <td align=\"right\"><strong>Cc:</strong></td>\n    <td colspan=\"3\">\n      <input name=\"cc\" size=\"45\" value=\"";    #line 200 "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('cc');                &$filter($output);    };        $output .=  "\">\n    </td>\n  </tr>\n  \n  <tr>\n    <td>&nbsp;</td>\n    <td colspan=\"3\"></td>\n  </tr>\n";    #line 223 "template\en\default\bug\create\create.html.tmpl"    if ($stash->get(['UserInGroup', [ $stash->get(['Param', [ 'timetrackinggroup' ]]) ]])) {    $output .=  "\n  <tr>\n    <td align=\"right\"><strong>Estimated Hours:</strong></td>\n    <td colspan=\"3\">\n      <input name=\"estimated_time\" size=\"6\" maxlength=\"6\" value=\"0.0\">\n    </td>\n  </tr>\n\n  <tr>\n    <td>&nbsp;</td>\n    <td colspan=\"3\"></td>\n  </tr>";    }        $output .=  "\n\n  <tr>\n    <td align=\"right\"><strong>URL:</strong></td>\n    <td colspan=\"3\">\n      <input name=\"bug_file_loc\" size=\"60\"\n             value=\"";    #line 229 "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('bug_file_loc');                &$filter($output);    };        $output .=  "\">\n    </td>\n  </tr>\n\n  <tr>\n    <td align=\"right\"><strong>Summary:</strong></td>\n    <td colspan=\"3\">\n      <input name=\"short_desc\" size=\"60\" value=\"";    #line 236 "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('short_desc');                &$filter($output);    };        $output .=  "\">\n    </td>\n  </tr>\n\n  <tr><td align=\"right\" valign=\"top\"><strong>Description:</strong></td>\n    <td colspan=\"3\">\n      <textarea wrap=\"hard\" name=\"comment\" rows=\"10\" cols=\"80\">";    #line 244 "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('comment');                &$filter($output);    };        $output .=  "</textarea>\n      <br>\n    </td>\n  </tr>\n";    #line 267 "template\en\default\bug\create\create.html.tmpl"    if ($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['UserInGroup', [ $stash->get(['Param', [ 'insidergroup' ]]) ]])) {    $output .=  "\n    <tr>\n      <td></td>\n      <td colspan=\"3\">\n        &nbsp;&nbsp;\n        <input type=\"checkbox\" id=\"commentprivacy\" name=\"commentprivacy\"";    #line 257 "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>";    }    else {    $output .=  "\n    <input type=\"hidden\" name=\"commentprivacy\" value=\"0\">";    }        $output .=  "\n";    #line 300 "template\en\default\bug\create\create.html.tmpl"    if ($stash->get(['UserInGroup', [ 'editbugs' ]])) {    #line 282 "template\en\default\bug\create\create.html.tmpl"    if ($stash->get('use_keywords')) {    $output .=  "\n      <tr>\n        <td align=\"right\" valign=\"top\">\n          <strong>\n            <a href=\"describekeywords.cgi\">Keywords</a>:\n          </strong>\n        </td>\n        <td colspan=\"3\">\n          <input name=\"keywords\" size=\"60\" value=\"";    #line 278 "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('keywords');                &$filter($output);    };        $output .=  "\"> (optional)\n        </td>\n      </tr>";    }        $output .=  "\n    <tr>\n      <td align=\"right\">\n        <strong>Depends on:</strong>\n      </td>\n      <td>\n        <input name=\"dependson\" accesskey=\"d\" value=\"";    #line 288 "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('dependson');                &$filter($output);    };        $output .=  "\">\n      </td>\n    </tr>\n    <tr>\n      <td align=\"right\">\n        <strong>Blocks:</strong>\n      </td>\n      <td>\n        <input name=\"blocked\" accesskey=\"b\" value=\"";    #line 296 "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('blocked');                &$filter($output);    };        $output .=  "\">\n      </td>\n    </tr>";    }        $output .=  "\n\n  <tr>\n    <td></td>\n    <td colspan=\"3\">";    #line 331 "template\en\default\bug\create\create.html.tmpl"    if ($stash->get(['group', 0, 'size', 0])) {    $output .=  "\n      <br>\n        <strong>\n          Only users in all of the selected groups can view this ";    #line 309 "template\en\default\bug\create\create.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ":\n        </strong>\n      <br>\n      <font size=\"-1\">\n        (Leave all boxes unchecked to make this a public ";    #line 313 "template\en\default\bug\create\create.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".)\n      </font>\n      <br>\n      <br>\n\n      <!-- Checkboxes -->";    #line 328 "template\en\default\bug\create\create.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('group');                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->{'g'} = $value;    $output .=  "\n        &nbsp;&nbsp;&nbsp;&nbsp;\n        <input type=\"checkbox\" id=\"bit-";    #line 322 "template\en\default\bug\create\create.html.tmpl"    $output .=  $stash->get(['g', 0, 'bit', 0]);    $output .=  "\"\n          name=\"bit-";    #line 323 "template\en\default\bug\create\create.html.tmpl"    $output .=  $stash->get(['g', 0, 'bit', 0]);    $output .=  "\" value=\"1\"";    #line 325 "template\en\default\bug\create\create.html.tmpl"    if ($stash->get(['g', 0, 'checked', 0])) {    $output .=  ('' . " checked=\"checked\"");    }        $output .=  ">\n          <label for=\"bit-";    #line 326 "template\en\default\bug\create\create.html.tmpl"    $output .=  $stash->get(['g', 0, 'bit', 0]);    $output .=  "\">";    #line 326 "template\en\default\bug\create\create.html.tmpl"    $output .=  $stash->get(['g', 0, 'description', 0]);    $output .=  "</label><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      <br>";    }        $output .=  "\n    </td>\n  </tr>\n\n  <tr>\n    <td></td>\n    <td colspan=\"3\">\n      <input type=\"submit\" value=\"    Commit    \"\n             onclick=\"if (this.form.short_desc.value == '')\n             { alert('Please enter a summary sentence for this ";    #line 340 "template\en\default\bug\create\create.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".');\n               return false; } return true;\">\n      &nbsp;&nbsp;&nbsp;&nbsp;\n      <input type=\"submit\" name=\"maketemplate\"\n             value=\"Remember values as bookmarkable template\">\n    </td>\n  </tr>\n";    #line 360 "template\en\default\bug\create\create.html.tmpl"    if ($stash->get(['Param', [ 'usebrowserinfo' ]])) {    $output .=  "\n  <tr>\n    <td></td>\n    <td colspan=\"3\">\n      <br>\n      We've made a guess at your operating system and platform.\n      Please check them and, if we got it wrong, email\n      ";    #line 356 "template\en\default\bug\create\create.html.tmpl"    $output .=  $stash->get(['Param', [ 'maintainer' ]]);    $output .=  ".\n    </td>\n  </tr>";    }        $output .=  "\n\n  </table>\n  <input type=\"hidden\" name=\"form_name\" value=\"enter_bug\">\n</form>\n";    #line 367 "template\en\default\bug\create\create.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\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 => {        'select' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 383 "template\en\default\bug\create\create.html.tmpl"        if ($stash->get(['sel', 0, 'description', 0])) {        $output .=  "\n  <td align=\"right\">\n    <strong>\n      <a href=\"page.cgi?id=fields.html#";        #line 377 "template\en\default\bug\create\create.html.tmpl"        $output .=  $stash->get(['sel', 0, 'name', 0]);        $output .=  "\">";        #line 379 "template\en\default\bug\create\create.html.tmpl"        $output .=  $stash->get(['sel', 0, 'description', 0]);        $output .=  "</a>:\n    </strong>\n  </td>";        }                $output .=  "\n\n  <td>\n    <select name=\"";        #line 386 "template\en\default\bug\create\create.html.tmpl"        $output .=  $stash->get(['sel', 0, 'name', 0]);        $output .=  "\">";        #line 394 "template\en\default\bug\create\create.html.tmpl"                # FOREACH         do {            my ($value, $error, $oldloop);            my $list = $stash->get($stash->get(['sel', 0, 'name', 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 389 "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('x');                        &$filter($output);        };                $output .=  "\"";        #line 391 "template\en\default\bug\create\create.html.tmpl"        if ($stash->get('x') eq $stash->get(['default', 0, $stash->get(['sel', 0, 'name', 0]), 0])) {        $output .=  ('' . " selected=\"selected\"");        }                $output .=  ">";        #line 391 "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('x');                        &$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>";            } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

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