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

📄 edit-multiple.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1212534148',        '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 $_tt_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 25 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('dontchange', '--do_not_change--');        $output .=  "\n<input type=\"hidden\" name=\"dontchange\" value=\"";    #line 26 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('dontchange');                &$_tt_filter($output);    };        $output .=  "\">\n\n<script type=\"text/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 style=\"font-size:smaller\">\n To change multiple ";    #line 44 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  ":</p>\n<ol style=\"font-size:smaller\">\n  <li>Check the ";    #line 46 "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\n<table id=\"form\">\n  <tr>\n\n    <th><label for=\"product\">Product:</label></th>\n    <td>";    #line 58 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'product', 'menuitems' => $stash->get('products'), 'property' => 'name' });    $output .=  "\n    </td>\n\n    <th><label for=\"version\">Version:</label></th>\n    <td>";    #line 65 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'version', 'menuitems' => $stash->get('versions'), 'property' => '' });    $output .=  "\n    </td>\n\n  </tr>\n  <tr>\n\n    <th><label for=\"component\">Component:</label></th>\n    <td>";    #line 75 "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=\"priority\">\n        <a href=\"page.cgi?id=fields.html#priority\">Priority</a>:\n      </label>\n    </th>\n    <td>";    #line 85 "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>\n      <label for=\"rep_platform\">\n        <a href=\"page.cgi?id=fields.html#rep_platform\">Platform</a>:\n      </label>\n    </th>\n    <td>";    #line 98 "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=\"bug_severity\">\n        <a href=\"page.cgi?id=fields.html#bug_severity\">Severity</a>:\n      </label>\n    </th>\n    <td>";    #line 108 "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\n  <tr>\n    <th>\n      <label for=\"op_sys\">\n        <a href=\"page.cgi?id=fields.html#op_sys\">OS</a>:\n      </label>\n    </th>\n    <td ";    #line 120 "template\en\default\list\edit-multiple.html.tmpl"    if (! $stash->get(['Param', [ 'usetargetmilestone' ]])) {    $output .=  ('' . " colspan=\"3\"");    }        $output .=  ">";    #line 121 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'op_sys', 'menuitems' => $stash->get('op_sys') });    $output .=  "\n    </td>\n";    #line 131 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['Param', [ 'usetargetmilestone' ]])) {    $output .=  "\n      <th><label for=\"target_milestone\">Target Milestone:</label></th>\n      <td>";    #line 128 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('selectmenu', { 'menuname' => 'target_milestone', 'menuitems' => $stash->get('targetmilestones') });    $output .=  "\n      </td>";    }        $output .=  "\n  </tr>\n";    #line 151 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['user', 0, 'in_group', [ $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 $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('dontchange');                &$_tt_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 $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('dontchange');                &$_tt_filter($output);    };        $output .=  "\"\n               size=\"6\">\n      </td>\n    </tr>";    }        $output .=  "\n";    #line 163 "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 159 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('dontchange');                &$_tt_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 196 "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";    #line 208 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get(['Param', [ 'usestatuswhiteboard' ]])) {    $output .=  "\n    <tr>\n      <td align=\"right\">\n        <b>Status Whiteboard:</b>\n      </td>\n      <td colspan=\"7\">\n        <input name=\"status_whiteboard\" \n               value=\"";    #line 205 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('dontchange');                &$_tt_filter($output);    };        $output .=  "\" size=\"60\">\n      </td>\n    </tr>";    }        $output .=  "\n";    #line 210 "template\en\default\list\edit-multiple.html.tmpl"    # USE    $stash->set('Bugzilla',                $context->plugin('Bugzilla'));    #line 217 "template\en\default\list\edit-multiple.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['Bugzilla', 0, 'get_fields', [ { 'obsolete' => 0, 'custom' => 1  } ]]);                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->{'field'} = $_tt_value;    $output .=  "\n    <tr>";    #line 213 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->process('bug/field.html.tmpl', { 'value' => $stash->get('dontchange'), 'editable' => 1, 'allow_dont_change' => 1 });    $output .=  "\n    </tr>";;                ($_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";    #line 219 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['Hook', 0, 'process', [ 'after_custom_fields' ]]);    $output .=  "\n\n</table>\n\n<b><label for=\"comment\">Additional Comments:</label></b><br>";    #line 224 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $context->include('global/textarea.html.tmpl', { 'name' => 'comment', 'id' => 'comment', 'minrows' => 5, 'maxrows' => 25, 'cols' => '80' });    $output .=  "<br>\n";    #line 275 "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</th>\n      <th>Remove<br>";    #line 238 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  "<br>from this<br>group</th>\n      <th>Add<br>";    #line 239 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  "<br>to this<br>group</th>\n      <th>Group Name:</th>\n    </tr>\n";    #line 266 "template\en\default\list\edit-multiple.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('groups');                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;    $output .=  "\n    <tr>\n      <td align=\"center\">\n        <input type=\"radio\" name=\"bit-";    #line 246 "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 249 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['group', 0, 'id', 0]);    $output .=  "\" value=\"0\">\n      </td>";    #line 258 "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 253 "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 257 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('foundinactive', 1);        }        $output .=  "\n\n      <td>";    #line 261 "template\en\default\list\edit-multiple.html.tmpl"    $stash->set('inactive', ! $stash->get(['group', 0, 'isactive', 0]));        #line 262 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('inactive', [ $stash->get('inactive') ])                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html_light')                  || $context->throw($context->error);        $output .=  $stash->get(['group', 0, 'description', 0]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        $output .=  "\n      </td>\n\n    </tr>";;                ($_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\n  </table>\n";    #line 273 "template\en\default\list\edit-multiple.html.tmpl"    if ($stash->get('foundinactive')) {    $output .=  "\n    <p style=\"font-size:smaller\">(Note: ";    #line 271 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bugs', 0]);    $output .=  " may not be added to ";    #line 272 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('inactive')                  || $context->throw($context->error);        $output .=  "inactive\n    groups";                &$_tt_filter($output);    };        $output .=  ", only removed.)</p>";    }        $output .=  "\n";    }        $output .=  "\n\n\n";    #line 279 "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 289 "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 284 "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 287 "template\en\default\list\edit-multiple.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " (change status to <b>";    #line 287 "template\en\default\list\edit-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['status_descs', 0, 'NEW', 0]);

⌨️ 快捷键说明

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