📄 edit-multiple.html.tmpl
字号:
#line 303 "template\en\default\list\edit-multiple.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('resolutions'); 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->{'resolution'} = $value; #line 297 "template\en\default\list\edit-multiple.html.tmpl" if (! $stash->get('resolution')) { ($value, $error) = $list->get_next(); next LOOP; } $output .= "\n <option value=\""; #line 298 "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('resolution'); &$filter($output); }; $output .= "\" "; #line 298 "template\en\default\list\edit-multiple.html.tmpl" if ($stash->get('resolution') eq 'FIXED') { $output .= 'selected="selected"'; } $output .= ">"; #line 300 "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('resolution'); &$filter($output); }; $output .= "\n </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><br>\n"; } $output .= "\n\n"; #line 313 "template\en\default\list\edit-multiple.html.tmpl" if (! $stash->get(['bugstatuses', 0, 'containsany', [ $stash->get('openstates') ]])) { #line 309 "template\en\default\list\edit-multiple.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); $output .= "\n <input id=\"knob-reopen\" type=\"radio\" name=\"knob\" value=\"reopen\">\n <label for=\"knob-reopen\">Reopen "; #line 311 "template\en\default\list\edit-multiple.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= "</label><br>"; } $output .= "\n"; #line 320 "template\en\default\list\edit-multiple.html.tmpl" if ($stash->get(['bugstatuses', 0, 'size', 0]) eq 1) { #line 320 "template\en\default\list\edit-multiple.html.tmpl" if ($stash->get(['bugstatuses', 0, 'contains', [ 'RESOLVED' ]])) { #line 316 "template\en\default\list\edit-multiple.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); $output .= "\n <input id=\"knob-verify\" type=\"radio\" name=\"knob\" value=\"verify\">\n <label for=\"knob-verify\">Mark "; #line 318 "template\en\default\list\edit-multiple.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " as <b>VERIFIED</b></label><br>"; } } $output .= "\n"; #line 327 "template\en\default\list\edit-multiple.html.tmpl" if (! $stash->get(['bugstatuses', 0, 'containsany', [ $stash->get('openstates') ]]) && ! $stash->get(['bugstatuses', 0, 'contains', [ 'CLOSED' ]])) { #line 323 "template\en\default\list\edit-multiple.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); $output .= "\n <input id=\"knob-close\" type=\"radio\" name=\"knob\" value=\"close\">\n <label for=\"knob-close\">Mark "; #line 325 "template\en\default\list\edit-multiple.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " as <b>CLOSED</b></label><br>"; } $output .= "\n"; #line 330 "template\en\default\list\edit-multiple.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); $output .= "\n<input id=\"knob-reassign\" type=\"radio\" name=\"knob\" value=\"reassign\">\n<label for=\"knob-reassign\"><a href=\"page.cgi?id=fields.html#assigned_to\">\n Reassign</a> "; #line 333 "template\en\default\list\edit-multiple.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " to\n</label>\n<input name=\"assigned_to\"\n value=\""; #line 336 "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(['user', 0, 'login', 0]); &$filter($output); }; $output .= "\"\n onchange=\"document.forms.changeform.knob["; #line 337 "template\en\default\list\edit-multiple.html.tmpl" $output .= $stash->get('knum'); $output .= "].checked = true;\"\n size=\"32\"><br>\n"; #line 341 "template\en\default\list\edit-multiple.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); $output .= "\n<input id=\"knob-reassignbycomponent\"\n type=\"radio\"\n name=\"knob\"\n value=\"reassignbycomponent\">\n<label for=\"knob-reassignbycomponent\">\n Reassign "; #line 347 "template\en\default\list\edit-multiple.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " to owner of selected component\n</label><br>\n\n<input type=\"submit\" value=\"Commit\">\n"; #line 356 "template\en\default\list\edit-multiple.html.tmpl" if ($stash->get('ismover')) { $output .= "\n <input type=\"submit\" name=\"action\" value=\""; #line 354 "template\en\default\list\edit-multiple.html.tmpl" $output .= $stash->get(['Param', [ 'move-button-text' ]]); $output .= "\">"; } $output .= "\n\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 => { 'selectmenu' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n <select id=\""; #line 365 "template\en\default\list\edit-multiple.html.tmpl" $output .= $stash->get('menuname'); $output .= "\" name=\""; #line 365 "template\en\default\list\edit-multiple.html.tmpl" $output .= $stash->get('menuname'); $output .= "\">\n <option value=\""; #line 366 "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 .= "\" selected=\"selected\">"; #line 368 "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 </option>"; #line 374 "template\en\default\list\edit-multiple.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('menuitems'); 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->{'menuitem'} = $value; $output .= "\n <option value=\""; #line 372 "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('menuitem'); &$filter($output); }; $output .= "\">"; #line 372 "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('menuitem'); &$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>"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -