?? edit.html.tmpl
字號:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1160863332', '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 $_tt_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"; #line 25 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $context->process('global/js-products.html.tmpl'); $output .= "\n"; #line 35 "template\en\default\admin\flag-type\edit.html.tmpl" if ($stash->get(['type', 0, 'target_type', 0]) eq 'bug') { #line 28 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; $output .= "Create Flag Type for "; #line 28 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugs', 0]); $output; }); #line 29 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('typeLabelLowerPlural', do { my $output = ''; #line 29 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output; }); #line 30 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('typeLabelLowerSingular', do { my $output = ''; #line 30 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output; }); } else { #line 32 "template\en\default\admin\flag-type\edit.html.tmpl" $stash->set('title', 'Create Flag Type for Attachments'); #line 33 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('typeLabelLowerPlural', do { my $output = ''; $output .= "attachments"; $output; }); #line 34 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('typeLabelLowerSingular', do { my $output = ''; $output .= "attachment"; $output; }); } $output .= "\n"; #line 41 "template\en\default\admin\flag-type\edit.html.tmpl" if ($stash->get('last_action') eq 'copy') { #line 38 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; $output .= "Create Flag Type Based on "; #line 38 "template\en\default\admin\flag-type\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['type', 0, 'name', 0]); &$_tt_filter($output); }; $output; }); } elsif ($stash->get('last_action') eq 'edit') { #line 40 "template\en\default\admin\flag-type\edit.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; $output .= "Edit Flag Type "; #line 40 "template\en\default\admin\flag-type\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['type', 0, 'name', 0]); &$_tt_filter($output); }; $output; }); } $output .= "\n"; #line 43 "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 54 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get('action'); $output .= "\">\n <input type=\"hidden\" name=\"id\" value=\""; #line 55 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\">\n <input type=\"hidden\" name=\"token\" value=\""; #line 56 "template\en\default\admin\flag-type\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('token'); &$_tt_filter($output); }; $output .= "\">\n <input type=\"hidden\" name=\"target_type\" value=\""; #line 57 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['type', 0, 'target_type', 0]); $output .= "\">"; #line 60 "template\en\default\admin\flag-type\edit.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['type', 0, 'inclusions', 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->{'category'} = $_tt_value; $output .= "\n <input type=\"hidden\" name=\"inclusions\" value=\""; #line 59 "template\en\default\admin\flag-type\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['category', 0, 'value', 0]); &$_tt_filter($output); }; $output .= "\">";; ($_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; }; #line 63 "template\en\default\admin\flag-type\edit.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['type', 0, 'exclusions', 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->{'category'} = $_tt_value; $output .= "\n <input type=\"hidden\" name=\"exclusions\" value=\""; #line 62 "template\en\default\admin\flag-type\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['category', 0, 'value', 0]); &$_tt_filter($output); }; $output .= "\">";; ($_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 "; $output .= "\n <input type=\"submit\" id=\"commit\" value=\"Submit\" style=\"display: none;\">\n\n <table id=\"form\" cellspacing=\"0\" cellpadding=\"4\" border=\"0\">\n <tr>\n <th>Name:</th>\n <td>\n a short name identifying this type<br>\n <input type=\"text\" name=\"name\" value=\""; #line 74 "template\en\default\admin\flag-type\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['type', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\"\n size=\"50\" maxlength=\"50\">\n </td>\n </tr>\n\n <tr>\n <th>Description:</th>\n <td>\n a comprehensive description of this type<br>"; #line 83 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $context->include('global/textarea.html.tmpl', { 'name' => 'description', 'minrows' => 4, 'cols' => 80, 'defaultcontent' => $stash->get(['type', 0, 'description', 0]) }); $output .= "\n </td>\n </tr>\n\n <tr>\n <th>Category:</th>\n\n <td>\n the products/components to which "; #line 96 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get('typeLabelLowerPlural'); $output .= " must\n (inclusions) or must not (exclusions) belong in order for users\n to be able to set flags of this type for them\n <table>\n <tr>\n <td style=\"vertical-align: top;\">\n <b>Product/Component:</b><br>\n <select name=\"product\" onchange=\"selectProduct(this.form, 'product', 'component', '__Any__');\">\n <option value=\"\">__Any__</option>"; #line 109 "template\en\default\admin\flag-type\edit.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('products'); 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->{'prod'} = $_tt_value; $output .= "\n <option value=\""; #line 106 "template\en\default\admin\flag-type\edit.html.tmpl"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -