📄 create.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1178795652', 'name' => 'admin/custom_fields/create.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\create.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 23 "template\en\default\admin\custom_fields\create.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'Add a new Custom Field', 'onload' => 'document.getElementById(\'new_bugmail\').disabled = true;' }); $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 Adding custom fields can make the interface of "; #line 38 "template\en\default\admin\custom_fields\create.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " very\n complicated. Many admins who are new to "; #line 39 "template\en\default\admin\custom_fields\create.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " start off\n adding many custom fields, and then their users complain that the interface\n is \"too complex\". Please think carefully before adding any custom fields.\n It may be the case that "; #line 42 "template\en\default\admin\custom_fields\create.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " already does what you need,\n and you just haven't enabled the correct feature yet.\n</p>\n\n<ul>\n <li>Custom field names must begin with \"cf_\" to distinguish them from\n standard fields. If you omit \"cf_\" from the beginning of the name, it\n will be added for you.</li>\n <li>Descriptions are a very short string describing the field and will be\n used as the label for this field in the user interface.</li>\n</ul>\n\n<form id=\"add_field\" action=\"editfields.cgi\" method=\"GET\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"5\">\n <tr>\n <th align=\"right\"><label for=\"name\">Name:</label></th>\n <td>\n <input type=\"text\" id=\"name\" name=\"name\" value=\"cf_\" size=\"40\" maxlength=\"64\">\n </td>\n\n <th align=\"right\">\n <label for=\"enter_bug\">Can be set on "; #line 63 "template\en\default\admin\custom_fields\create.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " creation:</label>\n </th>\n <td>\n <input type=\"checkbox\" id=\"enter_bug\" name=\"enter_bug\" value=\"1\"\n onchange=\"toggleCheckbox(this, 'new_bugmail');\">\n </td>\n </tr>\n <tr>\n <th align=\"right\"><label for=\"desc\">Description:</label></th>\n <td><input type=\"text\" id=\"desc\" name=\"desc\" value=\"\" size=\"40\"></td>\n\n <th align=\"right\">\n <label for=\"new_bugmail\">Displayed in "; #line 75 "template\en\default\admin\custom_fields\create.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "mail for new "; #line 75 "template\en\default\admin\custom_fields\create.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\"></td>\n </tr>\n <tr>\n <th align=\"right\"><label for=\"type\">Type:</label></th>\n <td>\n <select id=\"type\" name=\"type\">"; #line 86 "template\en\default\admin\custom_fields\create.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['field_types', 0, 'keys', 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->{'type'} = $_tt_value; #line 84 "template\en\default\admin\custom_fields\create.html.tmpl" if ($stash->get('type') eq '0') { ($_tt_value, $_tt_error) = $_tt_list->get_next(); next LOOP; } $output .= "\n <option value=\""; #line 85 "template\en\default\admin\custom_fields\create.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('type'); &$_tt_filter($output); }; $output .= "\">"; #line 85 "template\en\default\admin\custom_fields\create.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('type'), 0]); &$_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>\n </td>\n\n <th align=\"right\"><label for=\"obsolete\">Is obsolete:</label></th>\n <td><input type=\"checkbox\" id=\"obsolete\" name=\"obsolete\" value=\"1\"></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 </td>\n\n <th> </th>\n <td> </td>\n </tr>\n </table>\n <p>\n <input type=\"hidden\" name=\"action\" value=\"new\">\n <input type=\"hidden\" name=\"token\" value=\""; #line 105 "template\en\default\admin\custom_fields\create.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=\"create\" value=\"Create\">\n </p>\n</form>\n\n<p>\n <a href=\"editfields.cgi\">Back to the list of existing custom fields</a>\n</p>\n"; #line 114 "template\en\default\admin\custom_fields\create.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 + -