[%# 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" %] [% PROCESS global/header.html.tmpl title = 'Administer Flag Types' style_urls = ['skins/standard/admin.css'] onload="var f = document.flagtype_form; selectProduct(f.product, f.component, null, null, '__All__');" javascript_urls=["js/productform.js"] doc_section = "flags-overview.html#flag-types" %]

Flags are markers that identify whether [% terms.abug %] or attachment has been granted or denied some status. Flags appear in the UI as a name and a status symbol ("+" for granted, "-" for denied, and "?" for statuses requested by users).

For example, you might define a "review" status for users to request review for their patches. When a patch writer requests review, the string "review?" will appear in the attachment. When a patch reviewer reviews the patch, either the string "review+" or the string "review-" will appear in the patch, depending on whether the patch passed or failed review.

You can restrict the list of flag types to those available for a given product and component. If a product is selected with no component, only flag types which are available to at least one component of the product are shown.

Flag Types for [% terms.Bugs %]

[% PROCESS display_flag_types types=bug_types types_id='bugs' %]

Create Flag Type for [% terms.Bugs %]

Flag Types for Attachments

[% PROCESS display_flag_types types=attachment_types types_id='attachments' %]

Create Flag Type For Attachments

[% PROCESS global/footer.html.tmpl %] [% BLOCK display_flag_types %] [% IF show_flag_counts %] [%# Note to translators: translate the strings in quotes only. %] [% state_desc = {granted = 'granted' denied = 'denied' pending = 'pending'} %] [% END %] [% FOREACH type = types %] [% IF show_flag_counts %] [% END %] [% END %]
Edit name ... Description Sortkey Properties Grant group Request groupFlagsActions
[% type.name FILTER html FILTER no_break %] [% type.description FILTER html %] [% type.sortkey FILTER html %] [% IF type.is_requestable %] requestable [% END %] [% IF type.is_requestable && type.is_requesteeble %] (specifically) [% END %] [% IF type.is_multiplicable %] multiplicable [% END %] [% IF type.grant_group %][% type.grant_group.name FILTER html %][% END %] [% IF type.request_group %][% type.request_group.name FILTER html %][% END %] [% FOREACH state = ['granted', 'pending', 'denied'] %] [% bug_list = bug_lists.${type.id}.$state || [] %] [% IF bug_list.size %] [% bug_list.size FILTER html %] [%+ state_desc.$state FILTER html %]
[% ELSE %] 0 [% state_desc.$state FILTER html %]
[% END %] [% END %]
Copy | Delete
[% END %]