📄 edit.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1178795652', 'name' => 'admin/custom_fields/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\n"; $output .= "\n"; #line 21 "template\en\default\admin\custom_fields\edit.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 25 "template\en\default\admin\custom_fields\edit.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; $output .= "\n Edit the Custom Field '"; #line 24 "template\en\default\admin\custom_fields\edit.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 24 "template\en\default\admin\custom_fields\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'description', 0]); &$_tt_filter($output); }; $output .= ")"; $output; }); $output .= "\n"; #line 27 "template\en\default\admin\custom_fields\edit.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title'), 'onload' => 'toggleCheckbox(document.getElementById(\'enter_bug\'), \'new_bugmail\');' }); $output .= "\n\n<script type=\"text/javascript\">\n <!--\n // Disable a checkbox based on the state of another one.\n function toggleCheckbox(this_checkbox, other_checkbox_id) {\n var other_checkbox = document.getElementById(other_checkbox_id);\n other_checkbox.disabled = !this_checkbox.checked;\n }\n //-->\n</script>\n\n<p>\n Descriptions are a very short string describing the field and will be used as\n the label for this field in the user interface.\n</p>\n\n<form id=\"edit_field\" action=\"editfields.cgi\" method=\"GET\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"5\">\n <tr>\n <th align=\"right\">Name:</th>\n <td>"; #line 50 "template\en\default\admin\custom_fields\edit.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 .= "</td>\n\n <th align=\"right\">\n <label for=\"enter_bug\">Can be set on "; #line 53 "template\en\default\admin\custom_fields\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " creation:</label>\n </th>\n <td><input type=\"checkbox\" id=\"enter_bug\" name=\"enter_bug\" value=\"1\""; #line 56 "template\en\default\admin\custom_fields\edit.html.tmpl" if ($stash->get(['field', 0, 'enter_bug', 0])) { $output .= ' checked'; } $output .= "\n onchange=\"toggleCheckbox(this, 'new_bugmail');\"></td>\n </tr>\n <tr>\n <th align=\"right\"><label for=\"desc\">Description:</label></th>\n <td><input type=\"text\" id=\"desc\" name=\"desc\" size=\"40\"\n value=\""; #line 62 "template\en\default\admin\custom_fields\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "\"></td>\n\n <th align=\"right\">\n <label for=\"new_bugmail\">Displayed in "; #line 65 "template\en\default\admin\custom_fields\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "mail for new "; #line 65 "template\en\default\admin\custom_fields\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= ":</label>\n </th>\n <td><input type=\"checkbox\" id=\"new_bugmail\" name=\"new_bugmail\" value=\"1\""; #line 68 "template\en\default\admin\custom_fields\edit.html.tmpl" if ($stash->get(['field', 0, 'mailhead', 0])) { $output .= ' checked'; } $output .= "></td>\n </tr>\n <tr>\n <th align=\"right\">Type:</th>\n <td>"; #line 72 "template\en\default\admin\custom_fields\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field_types', 0, $stash->get(['field', 0, 'type', 0]), 0]); &$_tt_filter($output); }; $output .= "</td>\n\n <th align=\"right\"><label for=\"obsolete\">Is obsolete:</label></th>\n <td><input type=\"checkbox\" id=\"obsolete\" name=\"obsolete\" value=\"1\""; #line 76 "template\en\default\admin\custom_fields\edit.html.tmpl" if ($stash->get(['field', 0, 'obsolete', 0])) { $output .= ' checked'; } $output .= "></td>\n </tr>\n <tr>\n <th align=\"right\"><label for=\"sortkey\">Sortkey:</label></th>\n <td>\n <input type=\"text\" id=\"sortkey\" name=\"sortkey\" size=\"6\" maxlength=\"6\"\n value=\""; #line 82 "template\en\default\admin\custom_fields\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'sortkey', 0]); &$_tt_filter($output); }; $output .= "\">\n </td>\n\n <th> </th>\n <td> </td>\n </tr>"; #line 96 "template\en\default\admin\custom_fields\edit.html.tmpl" if ($stash->get(['field', 0, 'type', 0]) eq '2') { $output .= "\n <tr>\n <th> </th>\n <td colspan=\"3\">\n <a href=\"editvalues.cgi?field="; #line 92 "template\en\default\admin\custom_fields\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">Edit\n legal values for this field</a>.\n </td>\n </tr>"; } $output .= "\n </table>\n <br>\n <input type=\"hidden\" name=\"action\" value=\"update\">\n <input type=\"hidden\" name=\"name\" value=\""; #line 100 "template\en\default\admin\custom_fields\edit.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 <input type=\"hidden\" name=\"token\" value=\""; #line 101 "template\en\default\admin\custom_fields\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=\"submit\" id=\"edit\" value=\"Submit\">\n</form>\n\n<p>\n <a href=\"editfields.cgi\">Back to the list of existing custom fields</a>\n</p>\n"; #line 109 "template\en\default\admin\custom_fields\edit.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\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 + -