?? edit.html.tmpl
字號:
# FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['prod', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\" "; #line 107 "template\en\default\admin\flag-type\edit.html.tmpl" if ($stash->get(['type', 0, 'product', 0, 'name', 0]) eq $stash->get(['prod', 0, 'name', 0])) { $output .= 'selected'; } $output .= ">"; #line 108 "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(['prod', 0, 'name', 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><br>\n <select name=\"component\">\n <option value=\"\">__Any__</option>"; #line 117 "template\en\default\admin\flag-type\edit.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('components'); 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->{'comp'} = $_tt_value; $output .= "\n <option value=\""; #line 114 "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('comp'); &$_tt_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('comp')) { $output .= 'selected'; } $output .= ">"; #line 116 "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('comp'); &$_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><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 124 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $context->process('global/select-menu.html.tmpl', { 'name' => 'inclusion_to_remove', 'multiple' => '1', 'size' => '7', '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 129 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $context->process('global/select-menu.html.tmpl', { 'name' => 'exclusion_to_remove', 'multiple' => '1', 'size' => '7', '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 144 "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> </th>\n <td>\n <input type=\"checkbox\" name=\"is_active\" "; #line 151 "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> </th>\n <td>\n <input type=\"checkbox\" name=\"is_requestable\" "; #line 159 "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 169 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " logins."; #line 174 "template\en\default\admin\flag-type\edit.html.tmpl" if ($stash->get(['Param', [ 'emailsuffix' ]])) { $output .= "\n Note that the configured emailsuffix\n <kbd>"; #line 172 "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 175 "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, 'cc_list', 0]); &$_tt_filter($output); }; $output .= "\" size=\"80\" maxlength=\"200\">\n </td>\n </tr>\n\n <tr>\n <th> </th>\n <td>\n <input type=\"checkbox\" name=\"is_requesteeble\" "; #line 182 "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> </th>\n <td>\n <input type=\"checkbox\" name=\"is_multiplicable\" "; #line 190 "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 191 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get('typeLabelLowerSingular'); $output .= ")\n </td>\n </tr>\n\n <tr>\n <th>Grant Group:</th>\n <td>\n the group allowed to grant/deny flags of this type\n (to allow all users to grant/deny these flags, select no group)<br>"; #line 200 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $context->process('select', { 'selname' => 'grant_group' }); $output .= "\n </td>\n </tr>\n\n <tr>\n <th>Request Group:</th>\n <td>\n if flags of this type are requestable, the group allowed to request them\n (to allow all users to request these flags, select no group)<br>\n Note that the request group alone has no effect if the grant group is not defined!<br>"; #line 210 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $context->process('select', { 'selname' => 'request_group' }); $output .= "\n </td>\n </tr>\n\n <tr>\n <th></th>\n <td>\n <input type=\"submit\" id=\"save\" value=\""; #line 220 "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 228 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'select' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n <select name=\""; #line 236 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get('selname'); $output .= "\" id=\""; #line 236 "template\en\default\admin\flag-type\edit.html.tmpl" $output .= $stash->get('selname'); $output .= "\">\n <option value=\"\">(no group)</option>"; #line 243 "template\en\default\admin\flag-type\edit.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('groups'); 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->{'group'} = $_tt_value; $output .= "\n <option value=\""; #line 239 "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(['group', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\""; #line 240 "template\en\default\admin\flag-type\edit.html.tmpl" if (($stash->get(['type', 0, $stash->get('selname'), 0]) && $stash->get(['type', 0, $stash->get('selname'), 0, 'name', 0]) eq $stash->get(['group', 0, 'name', 0]))) { $output .= ' selected'; } $output .= ">"; #line 241 "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(['group', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\n </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>"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, },});
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -