blob: 6c5771661270838ce5a123b3ddf11e1f5a83c406 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
[%# 1.0@bugzilla.org %]
[%# 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 <justdave@syndicomm.com>
# Joel Peshkin <bugreport@peshkin.net>
# Jacob Steenhagen <jake@bugzilla.org>
# Vlad Dascalu <jocuri@softhome.net>
#%]
[%# INTERFACE:
# group_id: number. The group ID.
# name: string. The name of the group. [grantor]
# description: string. The description of the group.
# regexp: string. The regular expression for the users of the group.
# isactive: boolean int. Shows if the group is still active.
# isbuggroup: boolean int. Is 1 if this is a bug group.
# groups: array with group objects having the properties:
# - grpid: number. The ID of the group.
# - grpname: string. The name of the group. [member]
# - grpdesc: string. The description of the group.
# - grpmember: boolean int. Is 1 if members of the group are to inherit
# membership in the group being edited.
# - blessmember: boolean int. Is 1 if members of the group are to be able
# to bless users into the group being edited.
# - membercansee: boolean int. Is 1 if the members of the group are to
# be aware of the group being edited and its members.
#%]
[% title = BLOCK %]Change Group: [% name FILTER html %][% END %]
[% PROCESS global/header.html.tmpl
title = title
style = "tr.odd_row {
background: #e9e9e9;
}
.permissions th {
background: #000000;
color: #ffffff;
}
"
%]
<form method="post" action="editgroups.cgi">
<table border="1" cellpadding="4">
<tr>
<th>Group:</th>
<td>
[% IF isbuggroup %]
<input type="hidden" name="oldname" value="[% name FILTER html %]">
<input type="text" name="name" size="60" value="[% name FILTER html %]">
[% ELSE %]
[% name FILTER html %]
[% END %]
</td>
</tr>
<tr>
<th>Description:</th>
<td>
[% IF isbuggroup %]
<input type="hidden" name="olddesc" value="[% description FILTER html %]">
<input type="text" name="desc" size="70" value="[% description FILTER html %]">
[% ELSE %]
[% description FILTER html %]
[% END %]
</td>
</tr>
<tr>
<th>User Regexp:</th>
<td>
<input type="hidden" name="oldregexp" value="[% regexp FILTER html %]">
<input type="text" name="regexp" size="40" value="[% regexp FILTER html %]">
</td>
</tr>
[% IF isbuggroup %]
<tr>
<th>Use For [% terms.Bugs %]:</th>
<td>
<input type="checkbox" name="isactive" value="1" [% (isactive == 1) ? "checked" : "" %]>
<input type="hidden" name="oldisactive" value="[% isactive FILTER html %]">
</td>
</tr>
[% END %]
</table>
<p>
Users become members of this group in one of three ways:
<ul>
<li> by being explicity included when the user is edited.
<li> by matching the user regexp above.
<li> by being a member of one of the groups included in this group
by checking the boxes below.
</ul>
[% usevisibility = Param('usevisibilitygroups') %]
<h4>Group Permissions</h4>
<table class="permissions" cellspacing="0" cellpadding="2">
<tr>
[% IF usevisibility %]
<th>
Visible
</th>
[% END %]
<th>
Grant
</th>
<th>
Inherit
</th>
<th>
Group
</th>
<th>
Description
</th>
</tr>
[% row = 0 %]
[% FOREACH group = groups %]
[% row = row + 1 %]
<tr [% 'class="odd_row"' IF row % 2 %]>
[% IF usevisibility %]
<td align="center">
<input type="checkbox" name="cansee-[% group.grpid FILTER none %]"
[% group.membercansee ? "checked " : "" %]value="1">
<input type="hidden" name="oldcansee-[% group.grpid FILTER none %]"
value="[% group.membercansee FILTER none %]">
</td>
[% END %]
[% IF group_id != group.grpid %]
<td align="center">
<input type="checkbox" name="bless-[% group.grpid FILTER html %]" [% group.blessmember ? "checked " : "" %]value="1">
<input type="hidden" name="oldbless-[% group.grpid FILTER html %]" value="[% group.blessmember FILTER html %]">
</td>
<td align="center">
<input type="checkbox" name="grp-[% group.grpid FILTER html %]" [% group.grpmember ? "checked " : "" %]value="1">
<input type="hidden" name="oldgrp-[% group.grpid FILTER html %]" value="[% group.grpmember FILTER html %]">
</td>
[% ELSE %]
<td>
<input type="hidden" name="oldbless-[% group.grpid FILTER html %]" value="0">
</td>
<td>
<input type="hidden" name="oldgrp-[% group.grpid FILTER html %]" value="0">
</td>
[% END %]
<td align="left" class="groupname">
<a href="[% "editgroups.cgi?action=changeform&group=${group.grpid}" FILTER html %]">
[% group.grpnam FILTER html %]
</a>
</td>
<td align="left" class="groupdesc">[% group.grpdesc FILTER html_light %]</td>
</tr>
[% END %]
</table>
<input type="submit" id="update" value="Save Changes">
<br>
<dl>
[% IF usevisibility %]
<dt>Visibility:</dt>
<dd>
Members of the selected groups can be aware of the
"[% name FILTER html %]" group
</dd>
[% END %]
<dt>Grant:</dt>
<dd>
Members of the selected groups can grant membership to the
"[% name FILTER html %]" group
</dd>
<dt>Inherit:</dt>
<dd>
Members of the selected groups are automatically members of the
"[% name FILTER html %]" group
</dd>
</dl>
<table width="76%" border="0">
<tr>
<td>
<h4>Conversion of groups created with [% terms.Bugzilla %]
versions 2.16 and prior:</h4>
<ul>
<li>Remove all explicit memberships from this group:
<input name="remove_explicit_members" type="submit" id="remove_explicit_members" value="Remove Memberships">
</li>
<li>Remove all explicit memberships that are included in the above
regular expression:
<input name="remove_explicit_members_regexp" type="submit" id="remove_explicit_members_regexp" value="Remove memberships included in regular expression">
</li>
</ul>
</td>
</tr>
</table>
<input type="hidden" name="action" value="postchanges">
<input type="hidden" name="group" value="[% group_id FILTER html %]">
<input type="hidden" name="token" value="[% token FILTER html %]">
</form>
Back to the <a href="editgroups.cgi">group list</a>.
[% PROCESS global/footer.html.tmpl %]
|