[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [% PROCESS "global/js-products.html.tmpl" %] [% IF action == "insert" %] [% title = BLOCK %] Create Flag Type for [% type.target_type == "bug" ? terms.Bugs : "Attachments" %] [% IF type.id %] Based on [% type.name FILTER html %] [% END %] [% END %] [% ELSE %] [% title = BLOCK %]Edit Flag Type [% type.name FILTER html %][% END %] [% END %] [% PROCESS global/header.html.tmpl title = title style_urls = ['skins/standard/admin.css'] onload="var f = document.forms['flagtype_properties']; selectProduct(f.product, f.component, null, null, '__Any__');" javascript_urls=["js/productform.js"] doc_section = "administering/flags.html" %]
[% FOREACH category = inclusions.values %] [% END %] [% FOREACH category = exclusions.values %] [% END %] [%# Add a hidden button at the top of the form so that the user pressing "return" # really submit the form, as expected. %]
Name: a short name identifying this type.
Description: a comprehensive description of this type.
[% INCLUDE global/textarea.html.tmpl name = 'description' minrows = 4 cols = 80 defaultcontent = type.description disabled = !can_fully_edit mandatory = 1 %]
Category: the products/components to which [% type.target_type == "bug" ? terms.bugs : "attachments" %] must (inclusions) or must not (exclusions) belong in order for users to be able to set flags of this type for them. [% UNLESS can_fully_edit %]

This flagtype also applies to some products you are not allowed to edit (and so which are not displayed in the lists below). Your limited privileges means you are only allowed to add and remove this flagtype to/from products you can edit, but not to edit other properties of the flagtype.

[% END %]
Product/Component:
[% INCLUDE "global/product-select.html.tmpl" id => "product" name => "product" add => "__Any__" onchange => "selectProduct(this, this.form.component, null, null, '__Any__');" products => products %]

Inclusions:
[% PROCESS category_select name="inclusion_to_remove" categories = inclusions %]
Exclusions:
[% PROCESS category_select name="exclusion_to_remove" categories = exclusions %]
Sort Key: a number between 0 and [% constants.MAX_SMALLINT FILTER none %] by which this type will be sorted when displayed to users in a list; ignore if you don't care what order the types appear in or if you want them to appear in alphabetical order.
 
 
CC List: if requestable, who should get carbon copied on email notification of requests. This is a comma-separated list of full e-mail addresses which do not need to be [% terms.Bugzilla %] logins. [% IF Param('emailsuffix') %] Note that the configured emailsuffix [% Param('emailsuffix') %] will not be appended to these addresses, so you should add it explicitly if so desired. [% END %]
 
 
Grant Group: the group allowed to grant/deny flags of this type (to allow all users to grant/deny these flags, select no group).
[% PROCESS group_select selname = "grant_group" %]
Request Group: if flags of this type are requestable, the group allowed to request them (to allow all users to request these flags, select no group).
Note that the request group alone has no effect if the grant group is not defined!
[% PROCESS group_select selname = "request_group" %]
 
[% PROCESS global/footer.html.tmpl %] [%############################################################################%] [%# Block for SELECT fields #%] [%############################################################################%] [% BLOCK group_select %] [% END %] [% BLOCK category_select %] [% END %]