2008-12-15 15:53:33 +03:00
|
|
|
[%# 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:
|
|
|
|
# groups: array with group objects having the properties:
|
|
|
|
# - id: number. The ID of the group.
|
|
|
|
# - name: string. The name of the group.
|
|
|
|
# - description: string. The description of the group.
|
|
|
|
# - userregexp: string. The user regexp for the given group.
|
|
|
|
# - isactive: boolean int. Specifies if the group is active or not.
|
|
|
|
# - isbuggroup: boolean int. Specifies if it can be used for bugs.
|
|
|
|
#%]
|
|
|
|
|
|
|
|
[% PROCESS global/header.html.tmpl
|
|
|
|
title = "Edit Groups"
|
|
|
|
subheader = "This lets you edit the groups available to put users in."
|
|
|
|
doc_section = "groups.html"
|
|
|
|
%]
|
|
|
|
|
|
|
|
[% edit_contentlink = "editgroups.cgi?action=changeform&group=%%id%%" %]
|
2008-12-30 16:10:23 +03:00
|
|
|
[% editusers_contentlink = "editusersingroup.cgi?group=%%id%%" %]
|
2008-12-15 15:53:33 +03:00
|
|
|
[% del_contentlink = "editgroups.cgi?action=del&group=%%id%%" %]
|
|
|
|
|
2014-05-30 17:07:04 +04:00
|
|
|
[% columns = [
|
|
|
|
{
|
|
|
|
name => 'name'
|
2008-12-15 15:53:33 +03:00
|
|
|
heading => 'Name'
|
2014-05-30 17:07:04 +04:00
|
|
|
contentlink => allow_edit ? edit_contentlink : editusers_contentlink
|
2008-12-15 15:53:33 +03:00
|
|
|
}
|
2014-05-30 17:07:04 +04:00
|
|
|
{
|
|
|
|
name => 'description'
|
2008-12-15 15:53:33 +03:00
|
|
|
heading => 'Description'
|
|
|
|
allow_html_content => 1
|
|
|
|
}
|
2014-05-30 17:07:04 +04:00
|
|
|
];
|
|
|
|
%]
|
|
|
|
[% IF allow_edit;
|
|
|
|
columns.push(
|
|
|
|
{
|
|
|
|
name => 'userregexp'
|
2008-12-15 15:53:33 +03:00
|
|
|
heading => 'User RegExp'
|
|
|
|
}
|
2014-05-30 17:07:04 +04:00
|
|
|
{
|
|
|
|
name => 'is_active_bug_group'
|
2008-12-15 15:53:33 +03:00
|
|
|
heading => "Use For $terms.Bugs"
|
|
|
|
align => 'center'
|
|
|
|
}
|
2014-05-30 17:07:04 +04:00
|
|
|
{
|
|
|
|
name => 'type'
|
2008-12-15 15:53:33 +03:00
|
|
|
heading => 'Type'
|
|
|
|
align => 'center'
|
|
|
|
}
|
2014-05-30 17:07:04 +04:00
|
|
|
{
|
|
|
|
name => 'action'
|
2008-12-15 15:53:33 +03:00
|
|
|
heading => 'Action'
|
2014-05-30 15:45:13 +04:00
|
|
|
align => 'center'
|
2008-12-15 15:53:33 +03:00
|
|
|
}
|
2014-05-30 17:07:04 +04:00
|
|
|
{
|
|
|
|
name => 'members'
|
2014-05-30 15:45:13 +04:00
|
|
|
heading => 'Members'
|
|
|
|
align => 'center'
|
2008-12-30 16:10:23 +03:00
|
|
|
contentlink => editusers_contentlink
|
|
|
|
content => 'edit'
|
|
|
|
}
|
2014-05-30 17:07:04 +04:00
|
|
|
);
|
|
|
|
END %]
|
2008-12-15 15:53:33 +03:00
|
|
|
|
2009-07-29 15:21:49 +04:00
|
|
|
[% overrides.is_active_bug_group = {
|
|
|
|
'is_active_bug_group' => {
|
|
|
|
"0" => {
|
2010-05-15 00:02:34 +04:00
|
|
|
override_content => 1
|
|
|
|
content => " "
|
2009-07-29 15:21:49 +04:00
|
|
|
}
|
|
|
|
"1" => {
|
2010-05-15 00:02:34 +04:00
|
|
|
override_content => 1
|
|
|
|
content => "X"
|
2009-07-29 15:21:49 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
overrides.userregexp = {
|
|
|
|
'userregexp' => {
|
|
|
|
"" => {
|
2010-05-15 00:02:34 +04:00
|
|
|
override_content => 1
|
|
|
|
content => " "
|
2009-07-29 15:21:49 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%]
|
|
|
|
|
|
|
|
[% FOREACH group IN ["chartgroup", "insidergroup", "timetrackinggroup", "querysharegroup"] %]
|
|
|
|
[% special_group = Param(group) %]
|
|
|
|
|
|
|
|
[% IF special_group %]
|
|
|
|
[% overrides.action.name.$special_group = {
|
|
|
|
override_content => 1
|
|
|
|
content => "(used as the '$group')"
|
|
|
|
}
|
|
|
|
%]
|
|
|
|
[% END %]
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
[% overrides.action.isbuggroup = {
|
|
|
|
"1" => {
|
2010-05-15 00:02:34 +04:00
|
|
|
override_content => 1
|
|
|
|
content => "Delete"
|
|
|
|
override_contentlink => 1
|
|
|
|
contentlink => del_contentlink
|
2009-07-29 15:21:49 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
overrides.type.isbuggroup = {
|
|
|
|
"0" => {
|
2010-05-15 00:02:34 +04:00
|
|
|
override_content => 1
|
|
|
|
content => "system"
|
2009-07-29 15:21:49 +04:00
|
|
|
}
|
|
|
|
"1" => {
|
2010-05-15 00:02:34 +04:00
|
|
|
override_content => 1
|
|
|
|
content => "user"
|
2009-07-29 15:21:49 +04:00
|
|
|
}
|
|
|
|
}
|
2014-05-30 17:07:04 +04:00
|
|
|
%]
|
2008-12-15 15:53:33 +03:00
|
|
|
|
|
|
|
[% PROCESS admin/table.html.tmpl
|
|
|
|
columns = columns
|
|
|
|
data = groups
|
|
|
|
overrides = overrides
|
|
|
|
%]
|
|
|
|
|
2014-05-30 17:07:04 +04:00
|
|
|
[% IF allow_edit %]
|
|
|
|
|
2008-12-15 15:53:33 +03:00
|
|
|
<p><a href="editgroups.cgi?action=add">Add Group</a></p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>Name</b> is what is used with the B<!-- blah -->ugzilla->user->in_group()
|
|
|
|
function in any customized cgi files you write that use a given group.
|
|
|
|
It can also be used by people submitting [% terms.bugs %] by email to
|
|
|
|
limit [% terms.abug %] to a certain set of groups.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>Description</b> is what will be shown in the [% terms.bug %] reports
|
|
|
|
to members of the group where they can choose whether the [% terms.bug %]
|
|
|
|
will be restricted to others in the same group.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>User RegExp</b> is optional, and if filled in, will automatically
|
|
|
|
grant membership to this group to anyone with an email address
|
|
|
|
that matches this perl regular expression. Do not forget
|
|
|
|
the trailing '$'. Example '@mycompany\.com$'
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The <b>Use For [% terms.Bugs %]</b> flag determines whether or not
|
|
|
|
the group is eligible to be used for [% terms.bugs %]. If you remove
|
|
|
|
this flag, it will no longer be possible for users to add [% terms.bugs %]
|
|
|
|
to this group, although [% terms.bugs %] already in the group will remain
|
|
|
|
in the group. Doing so is a much less drastic way to stop a group
|
|
|
|
from growing than deleting the group as well as a way to maintain
|
|
|
|
lists of users without cluttering the lists of groups used
|
|
|
|
for [% terms.bug %] restrictions.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The <b>Type</b> field identifies system groups.
|
|
|
|
</p>
|
|
|
|
|
2014-05-30 17:07:04 +04:00
|
|
|
[% END %]
|
|
|
|
|
2008-12-15 15:53:33 +03:00
|
|
|
[% PROCESS global/footer.html.tmpl %]
|