⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
    #line 64 "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;    };        $output .=  "\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 73 "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(['type', 0, 'name', 0]);                &$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>\n        <textarea name=\"description\" rows=\"4\" cols=\"80\">";    #line 82 "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(['type', 0, 'description', 0]);                &$filter($output);    };        $output .=  "</textarea>\n      </td>\n    </tr>\n\n    <tr>\n      <th>Category:</th>\n\n      <td>\n        the products/components to which ";    #line 90 "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 107 "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->{'item'} = $value;    $output .=  "\n                  <option value=\"";    #line 101 "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('item');                &$filter($output);    };        $output .=  "\" ";    #line 103 "template\en\default\admin\flag-type\edit.html.tmpl"    if ($stash->get(['type', 0, 'product', 0, 'name', 0]) eq $stash->get('item')) {    $output .=  'selected';    }        $output .=  ">";    #line 105 "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('item');                &$filter($output);    };        $output .=  "</option>";;                ($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 .=  "\n              </select><br>\n              <select name=\"component\">\n                <option value=\"\">__Any__</option>";    #line 119 "template\en\default\admin\flag-type\edit.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('components');                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 .=  "\n                  <option value=\"";    #line 113 "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('item');                &$filter($output);    };        $output .=  "\" ";    #line 115 "template\en\default\admin\flag-type\edit.html.tmpl"    if ($stash->get(['type', 0, 'component', 0, 'name', 0]) eq $stash->get('item')) {    $output .=  'selected';    }        $output .=  ">";    #line 117 "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('item');                &$filter($output);    };        $output .=  "</option>";;                ($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 .=  "\n              </select><br>\n              <input type=\"submit\" name=\"categoryAction-include\" value=\"Include\">\n              <input type=\"submit\" name=\"categoryAction-exclude\" value=\"Exclude\">\n            </td>\n            <td style=\"vertical-align: top;\">\n              <b>Inclusions:</b><br>";    #line 127 "template\en\default\admin\flag-type\edit.html.tmpl"    $output .=  $context->process('global/select-menu.html.tmpl', { 'name' => 'inclusion_to_remove', 'multiple' => '1', 'size' => '4', 'options' => $stash->get(['type', 0, 'inclusions', 0]) });    $output .=  "<br>\n              <input type=\"submit\" name=\"categoryAction-removeInclusion\" value=\"Remove Inclusion\">\n            </td>\n            <td style=\"vertical-align: top;\">\n              <b>Exclusions:</b><br>";    #line 133 "template\en\default\admin\flag-type\edit.html.tmpl"    $output .=  $context->process('global/select-menu.html.tmpl', { 'name' => 'exclusion_to_remove', 'multiple' => '1', 'size' => '4', 'options' => $stash->get(['type', 0, 'exclusions', 0]) });    $output .=  "<br>\n              <input type=\"submit\" name=\"categoryAction-removeExclusion\" value=\"Remove Exclusion\">\n            </td>\n          </tr>\n        </table>\n      </td>\n    </tr>\n\n    <tr>\n      <th>Sort Key:</th>\n      <td>\n        a number between 1 and 32767 by which this type will be sorted\n        when displayed to users in a list; ignore if you don't care\n        what order the types appear in or if you want them to appear\n        in alphabetical order<br>\n        <input type=\"text\" name=\"sortkey\" value=\"";    #line 148 "template\en\default\admin\flag-type\edit.html.tmpl"    $output .=  $stash->get(['type', 0, 'sortkey', 0]) || 1;    $output .=  "\" size=\"5\" maxlength=\"5\">\n      </td>\n    </tr>\n\n    <tr>\n      <th>&nbsp;</th>\n      <td>\n        <input type=\"checkbox\" name=\"is_active\" ";    #line 155 "template\en\default\admin\flag-type\edit.html.tmpl"    if ($stash->get(['type', 0, 'is_active', 0]) || ! $stash->get(['type', 0, 'is_active', 0, 'defined', 0])) {    $output .=  'checked';    }        $output .=  ">\n        active (flags of this type appear in the UI and can be set)\n      </td>\n    </tr>\n\n    <tr>\n      <th>&nbsp;</th>\n      <td>\n        <input type=\"checkbox\" name=\"is_requestable\" ";    #line 163 "template\en\default\admin\flag-type\edit.html.tmpl"    if ($stash->get(['type', 0, 'is_requestable', 0]) || ! $stash->get(['type', 0, 'is_requestable', 0, 'defined', 0])) {    $output .=  'checked';    }        $output .=  ">\n        requestable (users can ask for flags of this type to be set)\n      </td>\n    </tr>\n\n    <tr>\n      <th>CC List:</th>\n      <td>\n        if requestable, who should get carbon copied on email notification of requests.\n        This is a comma-separated list of full e-mail addresses which do not\n        need to be ";    #line 173 "template\en\default\admin\flag-type\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bugzilla', 0]);    $output .=  " logins.";    #line 180 "template\en\default\admin\flag-type\edit.html.tmpl"    if ($stash->get(['Param', [ 'emailsuffix' ]])) {    $output .=  "\n          Note that the configured emailsuffix\n          <kbd>";    #line 177 "template\en\default\admin\flag-type\edit.html.tmpl"    $output .=  $stash->get(['Param', [ 'emailsuffix' ]]);    $output .=  "</kbd> will <em>not</em> be appended\n          to these addresses, so you should add it explicitly if so desired.";    }        $output .=  "<br>\n        <input type=\"text\" name=\"cc_list\" value=\"";    #line 181 "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(['type', 0, 'cc_list', 0]);                &$filter($output);    };        $output .=  "\" size=\"80\" maxlength=\"200\">\n      </td>\n    </tr>\n\n    <tr>\n      <th>&nbsp;</th>\n      <td>\n        <input type=\"checkbox\" name=\"is_requesteeble\" ";    #line 188 "template\en\default\admin\flag-type\edit.html.tmpl"    if ($stash->get(['type', 0, 'is_requesteeble', 0]) || ! $stash->get(['type', 0, 'is_requesteeble', 0, 'defined', 0])) {    $output .=  'checked';    }        $output .=  ">\n        specifically requestable (users can ask specific other users to set flags of this type as opposed to just asking the wind)\n      </td>\n    </tr>\n\n    <tr>\n      <th>&nbsp;</th>\n      <td>\n        <input type=\"checkbox\" name=\"is_multiplicable\" ";    #line 196 "template\en\default\admin\flag-type\edit.html.tmpl"    if ($stash->get(['type', 0, 'is_multiplicable', 0]) || ! $stash->get(['type', 0, 'is_multiplicable', 0, 'defined', 0])) {    $output .=  'checked';    }        $output .=  ">\n        multiplicable (multiple flags of this type can be set on the same ";    #line 197 "template\en\default\admin\flag-type\edit.html.tmpl"    $output .=  $stash->get('typeLabelLowerSingular');    $output .=  ")\n      </td>\n    </tr>\n\n    <tr>\n      <th></th>\n      <td>\n        <input type=\"submit\" value=\"        ";    #line 210 "template\en\default\admin\flag-type\edit.html.tmpl"    if (($stash->get('last_action') eq 'enter' || $stash->get('last_action') eq 'copy')) {    $output .=  "Create ";    }    else {    $output .=  "Save Changes ";    }        $output .=  "\">\n      </td>\n    </tr>\n\n  </table>\n\n</form>\n";    #line 219 "template\en\default\admin\flag-type\edit.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n";        } };        if ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -