[%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # The Initial Developer of the Original Code is Netscape Communications # Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # # Contributor(s): Dave Miller # Joel Peshkin # Jacob Steenhagen # Vlad Dascalu # Max Kanat-Alexander #%] [%# INTERFACE: # group: A Bugzilla::Group object representing the group that is # about to be deleted. # shared_queries: int; The number of queries being shared with this # group. #%] [% PROCESS global/header.html.tmpl title = "Delete group" doc_section = "groups.html" %]
Id Name Description
[% group.id FILTER html %] [% group.name FILTER html %] [% group.description FILTER html_light %]
[% IF group.members_non_inherited.size %]

[% group.members_non_inherited.size FILTER html %] users belong directly to this group. You cannot delete this group while there are users in it.
Show me which users -

[% END %] [% IF group.granted_by_direct(constants.GROUP_MEMBERSHIP).size %]

Members of this group inherit membership in the following groups:

    [% FOREACH grantor = group.granted_by_direct(constants.GROUP_MEMBERSHIP) %]
  • [% grantor.name FILTER html %]
  • [% END %]
[% END %] [% IF group.bugs.size %]

[% group.bugs.size FILTER html %] [%+ terms.bug %] reports are visible only to this group. You cannot delete this group while any [%+ terms.bugs %] are using it.
Show me which [% terms.bugs %] -

NOTE: It's quite possible to make confidential [% terms.bugs %] public by checking this box. It is strongly suggested that you review the [% terms.bugs %] in this group before checking the box.

[% END %] [% IF group.products.size %]

This group is tied to the following products:

[% SET any_hidden = 0 %]
    [% FOREACH data = group.products %] [% SET active = [] %] [% FOREACH control = data.controls.keys.sort %] [% NEXT IF !data.controls.$control %] [% IF control == 'othercontrol' OR control == 'membercontrol' %] [% SWITCH data.controls.$control %] [% CASE constants.CONTROLMAPMANDATORY %] [% SET type = "Mandatory" %] [% CASE constants.CONTROLMAPSHOWN %] [% SET type = "Shown" %] [% CASE constants.CONTROLMAPDEFAULT %] [% SET type = "Default" %] [% END %] [% active.push("$control: $type") %] [% ELSE %] [% active.push(control) %] [% END %] [% END %] [% SET hidden = 0 %] [% IF data.controls.othercontrol == constants.CONTROLMAPMANDATORY AND data.controls.membercontrol == constants.CONTROLMAPMANDATORY AND data.controls.entry %] [% SET hidden = 1 %] [% END %]
  • [%- data.product.name FILTER html %] ([% active.join(', ') FILTER html %]) [% IF hidden %] WARNING: This product is currently hidden. Deleting this group will make this product publicly visible. [% END %]
  • [% END %]

[% END %] [% IF group.flag_types.size %]

This group restricts who can make changes to flags of certain types. You cannot delete this group while there are flag types using it.
Show me which types -

[% END %] [% IF shared_queries %]

There [% IF shared_queries > 1 %] are [% shared_queries %] saved searches [% ELSE %] is a saved search [% END %] being shared with this group. If you delete this group, [% IF shared_queries > 1 %] these saved searches [% ELSE %] this saved search [% END %] will fall back to being private again.

[% END %]

Confirmation

Do you really want to delete this group?

[% IF group.users.size || group.bugs.size || group.products.size || group.flags.size %]

You must check all of the above boxes or correct the indicated problems first before you can proceed.

[% END %]

Go back to the group list. [% PROCESS global/footer.html.tmpl %]