📄 field.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1200175384', 'name' => 'bug/field.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\n"; $output .= "\n\n<th class=\"field_label\">"; #line 36 "template\en\default\bug\field.html.tmpl" if ($stash->get('editable')) { $output .= "\n <label for=\""; #line 35 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">"; } #line 37 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field_descs', 0, $stash->get(['field', 0, 'name', 0]), 0]); &$_tt_filter($output); }; $output .= ":"; #line 38 "template\en\default\bug\field.html.tmpl" if ($stash->get('editable')) { $output .= '</label>'; } $output .= "\n</th>\n\n<td class=\"field_value\" "; #line 0 "template\en\default\bug\field.html.tmpl" if ($stash->get('value_span')) { # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= ("colspan=\"" . $stash->get('value_span') . "\""); &$_tt_filter($output); }; } $output .= ">"; #line 64 "template\en\default\bug\field.html.tmpl" if ($stash->get('editable')) { #line 61 "template\en\default\bug\field.html.tmpl" # SWITCH do { my $_tt_result = $stash->get(['field', 0, 'type', 0]); my $_tt_match; SWITCH: { $_tt_match = '1'; $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY'; if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) { $output .= "\n <input id=\""; #line 45 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\" name=\""; #line 45 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\"\n value=\""; #line 46 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('value'); &$_tt_filter($output); }; $output .= "\" size=\"60\"\n maxlength=\""; #line 47 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= '255'; &$_tt_filter($output); }; $output .= "\">"; last SWITCH; } $_tt_match = '2'; $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY'; if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) { $output .= "\n <select id=\""; #line 49 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\" name=\""; #line 49 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">"; #line 54 "template\en\default\bug\field.html.tmpl" if ($stash->get('allow_dont_change')) { $output .= "\n <option value=\""; #line 51 "template\en\default\bug\field.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 .= "\">"; #line 52 "template\en\default\bug\field.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 </option>"; } #line 59 "template\en\default\bug\field.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['field', 0, 'legal_values', 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->{'legal_value'} = $_tt_value; $output .= "\n <option value=\""; #line 56 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('legal_value'); &$_tt_filter($output); }; $output .= "\""; #line 57 "template\en\default\bug\field.html.tmpl" if ($stash->get('value') eq $stash->get('legal_value')) { $output .= ('' . " selected=\"selected\""); } $output .= ">"; #line 58 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('legal_value'); &$_tt_filter($output); }; $output .= "</option>";; ($_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 </select>"; last SWITCH; } } }; } else { #line 63 "template\en\default\bug\field.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('value'); &$_tt_filter($output); }; } $output .= "\n</td>\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -