📄 edit.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1115321158', 'name' => 'admin/flag-type/edit.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\admin\flag-type\edit.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n\n"; #line 36 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('javascript', do { my $output = ''; $output .= "\n var usetms = 0; // do we have target milestone?\n var first_load = 1; // is this the first time we load the page?\n var last_sel = []; // caches last selection\n var cpts = new Array();"; #line 36 "template\en\default\admin\flag-type\edit.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('products'); 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->{'p'} = $value; $output .= "\n cpts['"; #line 32 "template\en\default\admin\flag-type\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get('p'); &$filter($output); }; $output .= "'] = ["; #line 34 "template\en\default\admin\flag-type\edit.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['components_by_product', 0, $stash->get('p'), 0]); 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->{'item'} = $value; $output .= "'"; #line 34 "template\en\default\admin\flag-type\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get('item'); &$filter($output); }; $output .= "'"; #line 34 "template\en\default\admin\flag-type\edit.html.tmpl" if (!($stash->get(['loop', 0, 'last', 0]))) { $output .= ', '; } ; ($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 .= " ];";; ($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; }); $output .= "\n"; #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" if ($stash->get(['type', 0, 'target_type', 0]) eq 'bug') { #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; $output .= "Create Flag Type for "; #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugs', 0]); $output; }); #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('typeLabelLowerPlural', do { my $output = ''; #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output; }); #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('typeLabelLowerSingular', do { my $output = ''; #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output; }); } else { #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" $stash->set('title', 'Create Flag Type for Attachments'); #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('typeLabelLowerPlural', do { my $output = ''; $output .= "attachments"; $output; }); #line 39 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('typeLabelLowerSingular', do { my $output = ''; $output .= "attachment"; $output; }); } $output .= "\n"; #line 42 "template\en\default\admin\flag-type\edit.html.tmpl" if ($stash->get('last_action') eq 'copy') { #line 0 "template\en\default\admin\flag-type\edit.html.tmpl" $stash->set('title', ("Create Flag Type Based on " . $stash->get(['type', 0, 'name', 0]))); } elsif ($stash->get('last_action') eq 'edit') { #line 0 "template\en\default\admin\flag-type\edit.html.tmpl" $stash->set('title', ("Edit Flag Type " . $stash->get(['type', 0, 'name', 0]))); } $output .= "\n"; #line 45 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title'), 'style' => ' table#form th { text-align: right; vertical-align: baseline; white-space: nowrap; } table#form td { text-align: left; vertical-align: baseline; } ', 'onload' => 'selectProduct(document.forms[0], \'product\', \'component\', \'__Any__\');', 'javascript_urls' => [ 'productmenu.js' ] }); $output .= "\n\n<form method=\"post\" action=\"editflagtypes.cgi\">\n <input type=\"hidden\" name=\"action\" value=\""; #line 56 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get('action'); $output .= "\">\n <input type=\"hidden\" name=\"id\" value=\""; #line 57 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\">\n <input type=\"hidden\" name=\"target_type\" value=\""; #line 58 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['type', 0, 'target_type', 0]); $output .= "\">"; #line 63 "template\en\default\admin\flag-type\edit.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['type', 0, 'inclusions', 0]); 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->{'category'} = $value; $output .= "\n <input type=\"hidden\" name=\"inclusions\" value=\""; #line 61 "template\en\default\admin\flag-type\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['category', 0, 'value', 0]); &$filter($output); }; $output .= "\">";; ($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; }; #line 66 "template\en\default\admin\flag-type\edit.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['type', 0, 'exclusions', 0]); 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->{'category'} = $value; $output .= "\n <input type=\"hidden\" name=\"exclusions\" value=\"";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -