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

📄 edit.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 5 页
字号:
        my $output = '';        my $_tt_filter = $context->filter('no_break')                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['type', 0, 'name', 0]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        #line 293 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['flag', 0, 'status', 0]);    $output .=  "\n                          ";    #line 296 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['flag', 0, 'requestee', 0])) {    $output .=  "\n                            (";    #line 295 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'requestee', 0, 'nick', 0]);                &$_tt_filter($output);    };        $output .=  ")";    }        $output .=  "<br>";;                ($_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;    };    ;                ($_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                </td>\n              </tr>\n            </table>\n          </fieldset>";    }        $output .=  "\n      </td>\n    </tr>\n  </table>\n";    #line 379 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'timetrackinggroup' ]]) ]])) {    $output .=  "\n    <br>\n    <table cellspacing=\"0\" cellpadding=\"4\" border=\"1\">\n      <tr>\n        <th align=\"center\" bgcolor=\"#cccccc\">\n          <label for=\"estimated_time\">Orig. Est.</label>\n        </th>\n        <th align=\"center\" bgcolor=\"#cccccc\">\n          Current Est.\n        </th>\n        <th align=\"center\" bgcolor=\"#cccccc\">\n          <label for=\"work_time\">Hours Worked</label>\n        </th>\n        <th align=\"center\" bgcolor=\"#cccccc\">\n          <label for=\"remaining_time\">Hours Left</label>\n        </th>\n        <th align=\"center\" bgcolor=\"#cccccc\">\n          %Complete\n        </th>\n        <th align=\"center\" bgcolor=\"#cccccc\">\n          Gain\n        </th>\n        <th align=\"center\" bgcolor=\"#cccccc\">\n          <label for=\"deadline\">Deadline</label>\n        </th>\n      </tr>\n      <tr>\n        <td align=\"center\">\n          <input name=\"estimated_time\" id=\"estimated_time\"\n                 value=\"";    #line 338 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('formattimeunit', { 'time_unit' => $stash->get(['bug', 0, 'estimated_time', 0]) });    $output .=  "\"\n                 size=\"6\" maxlength=\"6\">\n        </td>\n        <td align=\"center\">";    #line 343 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('formattimeunit', { 'time_unit' => ($stash->get(['bug', 0, 'actual_time', 0]) + $stash->get(['bug', 0, 'remaining_time', 0])) });    $output .=  "\n        </td>\n        <td align=\"center\">";    #line 347 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('formattimeunit', { 'time_unit' => $stash->get(['bug', 0, 'actual_time', 0]) });    $output .=  " +\n          <input name=\"work_time\" id=\"work_time\"\n                 value=\"0\" size=\"3\" maxlength=\"6\"\n                 onchange=\"adjustRemainingTime();\">\n        </td>\n        <td align=\"center\">\n          <input name=\"remaining_time\" id=\"remaining_time\"\n                 value=\"";    #line 354 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('formattimeunit', { 'time_unit' => $stash->get(['bug', 0, 'remaining_time', 0]) });    $output .=  "\"\n                 size=\"6\" maxlength=\"6\" onchange=\"updateRemainingTime();\">\n        </td>\n        <td align=\"center\">";    #line 359 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('calculatepercentage', { 'act' => $stash->get(['bug', 0, 'actual_time', 0]), 'rem' => $stash->get(['bug', 0, 'remaining_time', 0]) });    $output .=  "\n        </td>\n        <td align=\"center\">";    #line 363 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('formattimeunit', { 'time_unit' => $stash->get(['bug', 0, 'estimated_time', 0]) - ($stash->get(['bug', 0, 'actual_time', 0]) + $stash->get(['bug', 0, 'remaining_time', 0])) });    $output .=  "\n        </td>\n         <td align=\"center\">\n           <input name=\"deadline\" id=\"deadline\" value=\"";    #line 366 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'deadline', 0]);    $output .=  "\"\n                  size=\"10\" maxlength=\"10\"><br />\n           <small>(YYYY-MM-DD)</small>\n        </td>        \n      </tr>\n      <tr>\n        <td colspan=\"7\" align=\"right\">\n          <a href=\"summarize_time.cgi?id=";    #line 373 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "&amp;do_depends=1\">\n          Summarize time (including time for ";    #line 374 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  "\n          blocking this ";    #line 375 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ")</a>\n        </td>\n      </tr>\n    </table>";    }        $output .=  "\n\n";    $output .=  "\n";    #line 383 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('attachment/list.html.tmpl', { 'attachments' => $stash->get(['bug', 0, 'attachments', 0]), 'bugid' => $stash->get(['bug', 0, 'bug_id', 0]), 'num_attachment_flag_types' => $stash->get(['bug', 0, 'num_attachment_flag_types', 0]), 'show_attachment_flags' => $stash->get(['bug', 0, 'show_attachment_flags', 0]) });    $output .=  "\n\n\n";    $output .=  "\n\n  <br>\n  <table cellpadding=\"1\" cellspacing=\"1\">\n    <tr>\n      <td>";    #line 439 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['user', 0, 'id', 0])) {    $output .=  "\n          <label for=\"comment\" accesskey=\"c\"><b>Additional <u>C</u>omments</b></label>:";    #line 404 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'insidergroup' ]]) ]])) {    $output .=  "\n            <input type=\"checkbox\" name=\"commentprivacy\" value=\"1\"\n                   id=\"newcommentprivacy\"\n                   onClick=\"updateCommentTagControl(this, form)\">\n            <label for=\"newcommentprivacy\">Private</label>";    }        $output .=  "\n          <br>\n          <a name=\"add_comment\"></a>";    #line 407 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->include('global/textarea.html.tmpl', { 'name' => 'comment', 'id' => 'comment', 'minrows' => 10, 'maxrows' => 25, 'cols' => '80' });    $output .=  "\n";    #line 429 "template\en\default\bug\edit.html.tmpl"    if (! $stash->get(['bug', 0, 'cc', 0]) || ! $stash->get(['bug', 0, 'cc', 0, 'contains', [ $stash->get(['user', 0, 'login', 0]) ]])) {    #line 416 "template\en\default\bug\edit.html.tmpl"    $stash->set('has_role', $stash->get(['bug', 0, 'user', 0, 'isreporter', 0]) || $stash->get(['bug', 0, 'assigned_to', 0, 'id', 0]) eq $stash->get(['user', 0, 'id', 0]) || ($stash->get(['Param', [ 'useqacontact' ]]) && $stash->get(['bug', 0, 'qa_contact', 0]) && $stash->get(['bug', 0, 'qa_contact', 0, 'id', 0]) eq $stash->get(['user', 0, 'id', 0])));        $output .=  "\n\n            <br>\n            <input type=\"checkbox\" id=\"addselfcc\" name=\"addselfcc\"";    #line 424 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['user', 0, 'settings', 0, 'state_addselfcc', 0, 'value', 0]) eq 'always' || (! $stash->get('has_role') && $stash->get(['user', 0, 'settings', 0, 'state_addselfcc', 0, 'value', 0]) eq 'cc_unless_role')) {    $output .=  ('' . " checked=\"checked\"");    }        $output .=  ">\n            <label for=\"addselfcc\">Add ";    #line 428 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['user', 0, 'identity', 0]);                &$_tt_filter($output);    };        $output .=  " to CC list</label>";    }        }    else {    $output .=  "\n          <fieldset>\n            <legend>Note</legend>\n            <p>\n              You need to\n              <a href=\"show_bug.cgi?id=";    #line 435 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "&amp;GoAheadAndLogIn=1\">log in</a>\n              before you can comment on or make changes to this ";    #line 436 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".\n            </p>\n          </fieldset>";    }        $output .=  "\n      </td>\n\n      <td valign=\"top\">\n        <fieldset>\n          <legend>Related actions</legend>\n          <ul>\n            <li><a href=\"show_activity.cgi?id=";    #line 446 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">View ";    #line 446 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bug', 0]);    $output .=  " Activity</a></li>\n            <li><a href=\"show_bug.cgi?format=multiple&amp;id=";    #line 447 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">Format For Printing</a></li>\n            <li><a href=\"show_bug.cgi?ctype=xml&amp;id=";    #line 448 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">XML</a></li>\n            <li><a href=\"enter_bug.cgi?cloned_bug_id=";    #line 449 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">Clone This ";    #line 449 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bug', 0]);    $output .=  "</a></li>\n          </ul>\n";    #line 463 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'use_votes', 0])) {    $output .=  "\n            <br>\n            <b><a href=\"page.cgi?id=voting.html\">Votes</a></b>: ";    #line 454 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'votes', 0]);    $output .=  "\n            <ul>";    #line 459 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'votes', 0])) {    $output .=  "\n                <li><a href=\"votes.cgi?action=show_bug&amp;bug_id=";    #line 457 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">Show\n                             votes for this ";    #line 458 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  "</a></li>";    }        $output .=  "\n              <li><a href=\"votes.cgi?action=show_user&amp;bug_id=";    #line 460 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "#vote_";    #line 460 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">Vote\n                           for this ";    #line 461 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  "</a></li>\n            </ul>";    }        $output .=  "\n\n          ";    #line 466 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['Hook', 0, 'process', [ 'links' ]]);    $output .=  "\n        </fieldset>\n      </td>\n    </tr>\n  </table>\n  <br>\n";    #line 538 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'groups', 0, 'size', 0]) > 0) {    #line 474 "template\en\default\bug\edit.html.tmpl"    $stash->set('inallgroups', 1);        #line 475 "template\en\default\bug\edit.html.tmpl"    $stash->set('inagroup', 0);        #line 501 "template\en\default\bug\edit.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['bug', 0, 'groups', 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->{'group'} = $_tt_value;    #line 477 "template\en\default\bug\edit.html.tmpl"    if (! $stash->get(['group', 0, 'ingroup', 0])) {    $stash->set('inallgroups', 0);        }        #line 478 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['group', 0, 'ison', 0])) {    $stash->set('inagroup', 1);        }        $output .=  "\n";    #line 500 "template\en\default\bug\edit.html.tmpl"    if (! $stash->get(['group', 0, 'mandatory', 0])) {    #line 491 "template\en\default\bug\edit.html.tmpl"    if (! $stash->get('emitted_description')) {    #line 482 "template\en\default\bug\edit.html.tmpl"    $stash->set('emitted_description', 1);        $output .=  "\n          <br>\n          <b>Only users in all of the selected groups can view this ";    #line 484 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ":</b>\n          <br>\n          <font size=\"-1\">\n            (Unchecking all boxes makes this a more public ";    #line 487 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".)\n          </font>\n          <br>\n          <br>";    }        $output .=  "\n\n      &nbsp;&nbsp;&nbsp;&nbsp;\n      <input type=\"checkbox\" value=\"1\"\n             name=\"bit-";    #line 495 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['group', 0, 'bit', 0]);    $output .=  "\" id=\"bit-";    #line 495 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['group', 0, 'bit', 0]);    $output .=  "\"";    #line 496 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['group', 0, 'ison', 0])) {    $output .=  ('' . " checked=\"checked\"");    }        #line 497 "template\en\default\bug\edit.html.tmpl"    if (! $stash->get(['group', 0, 'ingroup', 0])) {    $output .=  ('' . " disabled=\"disabled\"");    }    

⌨️ 快捷键说明

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