1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Dave Miller <justdave@syndicomm.com>
20
# Joel Peshkin <bugreport@peshkin.net>
21
# Jacob Steenhagen <jake@bugzilla.org>
22
# Vlad Dascalu <jocuri@softhome.net>
26
# groups: array with group objects having the properties:
27
# - id: number. The ID of the group.
28
# - name: string. The name of the group.
29
# - description: string. The description of the group.
30
# - userregexp: string. The user regexp for the given group.
31
# - isactive: boolean int. Specifies if the group is active or not.
32
# - isbuggroup: boolean int. Specifies if it can be used for bugs.
35
[% PROCESS global/header.html.tmpl
37
subheader = "This lets you edit the groups available to put users in."
40
[% edit_contentlink = "editgroups.cgi?action=changeform&group=%%id%%" %]
41
[% del_contentlink = "editgroups.cgi?action=del&group=%%id%%" %]
46
contentlink => edit_contentlink
48
{name => 'description'
49
heading => 'Description'
50
allow_html_content => 1
53
heading => 'User RegExp'
55
{name => 'is_active_bug_group'
56
heading => "Use For $terms.Bugs"
69
[% overrides.is_active_bug_group = [ {
71
match_field => 'is_active_bug_group'
77
match_field => 'is_active_bug_group'
81
overrides.userregexp = [ {
83
match_field => 'userregexp'
87
overrides.action = [ {
88
match_value => Param("chartgroup")
91
content => "(used as the 'chartgroup')"
94
match_value => Param("insidergroup")
97
content => "(used as the 'insidergroup')"
100
match_value => Param("timetrackinggroup")
101
match_field => 'name'
102
override_content => 1
103
content => "(used as the 'timetrackinggroup')"
106
match_value => Param("querysharegroup")
107
match_field => 'name'
108
override_content => 1
109
content => "(used as the 'querysharegroup')"
113
match_field => 'isbuggroup'
114
override_content => 1
116
override_contentlink => 1
117
contentlink => del_contentlink
121
match_field => 'isbuggroup'
122
override_content => 1
127
match_field => 'isbuggroup'
128
override_content => 1
133
[% PROCESS admin/table.html.tmpl
136
overrides = overrides
139
<p><a href="editgroups.cgi?action=add">Add Group</a></p>
142
<b>Name</b> is what is used with the B<!-- blah -->ugzilla->user->in_group()
143
function in any customized cgi files you write that use a given group.
144
It can also be used by people submitting [% terms.bugs %] by email to
145
limit [% terms.abug %] to a certain set of groups.
149
<b>Description</b> is what will be shown in the [% terms.bug %] reports
150
to members of the group where they can choose whether the [% terms.bug %]
151
will be restricted to others in the same group.
155
<b>User RegExp</b> is optional, and if filled in, will automatically
156
grant membership to this group to anyone with an email address
157
that matches this perl regular expression. Do not forget
158
the trailing '$'. Example '@mycompany\.com$'
162
The <b>Use For [% terms.Bugs %]</b> flag determines whether or not
163
the group is eligible to be used for [% terms.bugs %]. If you remove
164
this flag, it will no longer be possible for users to add [% terms.bugs %]
165
to this group, although [% terms.bugs %] already in the group will remain
166
in the group. Doing so is a much less drastic way to stop a group
167
from growing than deleting the group as well as a way to maintain
168
lists of users without cluttering the lists of groups used
169
for [% terms.bug %] restrictions.
173
The <b>Type</b> field identifies system groups.
176
[% PROCESS global/footer.html.tmpl %]