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

📄 edit-multiple.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1105133062',        'name' => 'list/edit-multiple.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 23 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 26 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('dontchange', '--do_not_change--');        $output .=  "\n<input type=\"hidden\" name=\"dontchange\" value=\"";    #line 27 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('dontchange');                &$filter($output);    };        $output .=  "\">\n\n<script type=\"text/javascript\" language=\"JavaScript\">\n  var numelements = document.forms.changeform.elements.length;\n  function SetCheckboxes(value) {\n      var item;\n      for (var i=0 ; i<numelements ; i++) {\n          item = document.forms.changeform.elements[i];\n          item.checked = value;\n      }\n  }\n  document.write(' <input type=\"button\" name=\"uncheck_all\" value=\"Uncheck All\" onclick=\"SetCheckboxes(false);\">');\n  document.write(' <input type=\"button\" name=\"check_all\" value=\"Check All\" onclick=\"SetCheckboxes(true);\">');\n</script>\n\n<hr>\n\n<p><font size=\"-1\">\n  To change multiple ";    #line 45 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  ":\n  <ol>\n    <li>Check the ";    #line 47 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " you want to change above.</li>\n    <li>Make your changes in the form fields below.  If the change\n        you are making requires an explanation, include it in\n        the comments box.</li>\n    <li>Click the <em>Commit</em> button.</li>\n  </ol>\n</font></p>\n\n<table id=\"form\">\n  <tr>\n\n    <th><label for=\"product\">Product:</label></th>\n    <td>";    #line 61 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'product', 'menuitems' => $stash->get('products') });    $output .=  "\n    </td>\n\n    <th><label for=\"version\">Version:</label></th>\n    <td>";    #line 68 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'version', 'menuitems' => $stash->get('versions') });    $output .=  "\n    </td>\n\n  </tr>\n  <tr>\n\n    <th>\n      <label for=\"rep_platform\">\n        <a href=\"page.cgi?id=fields.html#rep_platform\">Platform</a>:\n      </label>\n    </th>\n    <td>";    #line 82 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'rep_platform', 'menuitems' => $stash->get('platforms') });    $output .=  "\n    </td>\n\n    <th>\n      <label for=\"priority\">\n        <a href=\"page.cgi?id=fields.html#priority\">Priority</a>:\n      </label>\n    </th>\n    <td>";    #line 93 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'priority', 'menuitems' => $stash->get('priorities') });    $output .=  "\n    </td>\n\n  </tr>\n  <tr>\n\n    <th><label for=\"component\">Component:</label></th>\n    <td>";    #line 103 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'component', 'menuitems' => $stash->get('components') });    $output .=  "\n    </td>\n\n    <th>\n      <label for=\"bug_severity\">\n        <a href=\"page.cgi?id=fields.html#bug_severity\">Severity</a>:\n      </label>\n    </th>\n    <td>";    #line 114 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'bug_severity', 'menuitems' => $stash->get('severities') });    $output .=  "\n    </td>\n\n  </tr>\n";    #line 131 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['Param', [ 'usetargetmilestone' ]])) {    $output .=  "\n    <tr>\n      <th><label for=\"target_milestone\">Target Milestone:</label></th>\n      <td colspan=\"3\">";    #line 126 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'target_milestone', 'menuitems' => $stash->get('targetmilestones') });    $output .=  "\n      </td>\n    </tr>";    }        $output .=  "\n";    #line 152 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['UserInGroup', [ $stash->get(['Param', [ 'timetrackinggroup' ]]) ]])) {    $output .=  "\n    <tr>\n      <th><label for=\"estimated_time\">Estimated Hours:</label></th>\n      <td>\n        <input id=\"estimated_time\"\n               name=\"estimated_time\"\n               value=\"";    #line 140 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('dontchange');                &$filter($output);    };        $output .=  "\"\n               size=\"6\">\n      </td>\n      <th><label for=\"remaining_time\">Remaining Hours:</label></th>\n      <td>\n        <input id=\"remaining_time\"\n               name=\"remaining_time\"\n               value=\"";    #line 147 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('dontchange');                &$filter($output);    };        $output .=  "\"\n               size=\"6\">\n      </td>\n    </tr>";    }        $output .=  "\n";    #line 166 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['Param', [ 'useqacontact' ]])) {    $output .=  "\n    <tr>\n      <th><label for=\"qa_contact\">QA Contact:</label></th>\n      <td colspan=\"3\">\n        <input id=\"qa_contact\"\n               name=\"qa_contact\"\n               value=\"";    #line 161 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('dontchange');                &$filter($output);    };        $output .=  "\"\n               size=\"32\">\n      </td>\n    </tr>";    }        $output .=  "\n\n  <tr>\n\n    <th><label for=\"masscc\">CC List:</label></th>\n    <td colspan=\"3\">\n      <input id=\"masscc\" name=\"masscc\" size=\"32\">\n      <select name=\"ccaction\">\n        <option value=\"add\">Add these to the CC List</option>\n        <option value=\"remove\">Remove these from the CC List</option>\n      </select>\n    </td>\n\n  </tr>\n";    #line 201 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get('use_keywords')) {    $output .=  "\n    <tr>\n\n      <th>\n        <label for=\"keywords\">\n          <a href=\"describekeywords.cgi\">Keywords</a>:\n        </label>\n      </th>\n      <td colspan=\"3\">\n        <input id=\"keywords\" name=\"keywords\" size=\"32\">\n        <select name=\"keywordaction\">\n          <option value=\"add\">Add these keywords</option>\n          <option value=\"delete\">Delete these keywords</option>\n          <option value=\"makeexact\">Make the keywords be exactly this list</option>\n        </select>\n      </td>\n\n    </tr>";    }        $output .=  "\n\n</table>\n\n<label for=\"comment\"><b>Additional Comments:</b></label><br>\n<textarea id=\"comment\" name=\"comment\" rows=\"5\" cols=\"80\" wrap=\"hard\"></textarea><br>\n";    #line 259 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['groups', 0, 'size', 0]) > 0) {    $output .=  "\n\n  <b>Groupset:</b><br>\n  <table border=\"1\">\n    <tr>\n      <th>Don't<br>change<br>this group<br>restriction</td>\n      <th>Remove<br>";    #line 215 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  "<br>from this<br>group</td>\n      <th>Add<br>";    #line 216 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  "<br>to this<br>group</td>\n      <th>Group Name:</td>\n    </tr>\n";    #line 247 "template\en\default\list\edit-multiple.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('groups');                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->{'group'} = $value;    $output .=  "\n    <tr>\n      <td align=\"center\">\n        <input type=\"radio\" name=\"bit-";    #line 224 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['group', 0, 'id', 0]);    $output .=  "\" value=\"-1\" checked=\"checked\">\n      </td>\n      <td align=\"center\">\n        <input type=\"radio\" name=\"bit-";    #line 227 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['group', 0, 'id', 0]);    $output .=  "\" value=\"0\">\n      </td>";    #line 238 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['group', 0, 'isactive', 0])) {    $output .=  "\n        <td align=\"center\">\n          <input type=\"radio\" name=\"bit-";    #line 232 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['group', 0, 'id', 0]);    $output .=  "\" value=\"1\">\n        </td>";    }    else {    $output .=  "\n        <td>&nbsp;</td>";    #line 238 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('foundinactive', 1);        }        $output .=  "\n\n      <td>";    #line 242 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['group', 0, 'isactive', 0])) {    #line 242 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['group', 0, 'description', 0]);    }    else {    #line 242 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('inactive')                  || $context->throw($context->error);        $output .=  $stash->get(['group', 0, 'description', 0]);                &$filter($output);    };        }        $output .=  "\n      </td>\n\n    </tr>";;                ($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\n  </table>\n";    #line 256 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get('foundinactive')) {    $output .=  "\n    <font size=\"-1\">(Note: ";    #line 253 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bugs', 0]);    $output .=  " may not be added to ";    #line 254 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('inactive')                  || $context->throw($context->error);        $output .=  "inactive\n    groups";                &$filter($output);    };        $output .=  ", only removed.)</font><br>";    }        $output .=  "\n";    }        $output .=  "\n\n\n";    #line 264 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('knum', 0);        $output .=  "\n<input id=\"knob-none\" type=\"radio\" name=\"knob\" value=\"none\" checked=\"checked\">\n<label for=\"knob-none\">Do nothing else</label><br>\n";    #line 275 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['bugstatuses', 0, 'size', 0]) eq 1 && $stash->get(['bugstatuses', 0, 0, 0]) eq $stash->get('unconfirmedstate')) {    #line 269 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('knum', $stash->get('knum') + 1);        $output .=  "\n  <input id=\"knob-confirm\" type=\"radio\" name=\"knob\" value=\"confirm\">\n  <label for=\"knob-confirm\">\n    Confirm ";    #line 272 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " (change status to <b>NEW</b>)\n  </label><br>";    }        $output .=  "\n\n";    #line 307 "template\en\default\list\edit-multiple.html.tmpl"    if (! $stash->get(['bugstatuses', 0, 'containsany', [ $stash->get('closedstates') ]])) {    #line 278 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('knum', $stash->get('knum') + 1);        $output .=  "\n  <input id=\"knob-accept\" type=\"radio\" name=\"knob\" value=\"accept\">\n  <label for=\"knob-accept\">\n    Accept ";    #line 281 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " (change status to <b>ASSIGNED</b>)\n  </label><br>\n";    #line 285 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('knum', $stash->get('knum') + 1);        $output .=  "\n  <input id=\"knob-clearresolution\" type=\"radio\" name=\"knob\" value=\"clearresolution\">\n  <label for=\"knob-clearresolution\">Clear the resolution</label><br>\n";    #line 290 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('knum', $stash->get('knum') + 1);        $output .=  "\n  <input id=\"knob-resolve\" type=\"radio\" name=\"knob\" value=\"resolve\">\n  <label for=\"knob-resolve\">\n    Resolve ";    #line 293 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  ", changing <a href=\"page.cgi?id=fields.html#resolution\">resolution</a> to\n  </label>\n  <select name=\"resolution\" onchange=\"document.forms.changeform.knob[";    #line 295 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get('knum');    $output .=  "].checked=true\">";

⌨️ 快捷键说明

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