From ac8796ba2733be5e0e618148ee12488cc567d34e Mon Sep 17 00:00:00 2001
From: "jocuri%softhome.net" <>
Date: Tue, 13 Jul 2004 12:12:29 +0000
Subject: Patch for bug 190222: templatize editgroups.cgi; r=joel, a=justdave.
---
template/en/default/admin/groups/change.html.tmpl | 111 ++++++++++++++
template/en/default/admin/groups/create.html.tmpl | 3 +
template/en/default/admin/groups/created.html.tmpl | 38 +++++
template/en/default/admin/groups/delete.html.tmpl | 100 +++++++++++++
template/en/default/admin/groups/deleted.html.tmpl | 54 +++++++
template/en/default/admin/groups/edit.html.tmpl | 159 +++++++++++++++++++++
template/en/default/admin/groups/list.html.tmpl | 119 +++++++++++++++
template/en/default/admin/groups/remove.html.tmpl | 60 ++++++++
8 files changed, 644 insertions(+)
create mode 100644 template/en/default/admin/groups/change.html.tmpl
create mode 100644 template/en/default/admin/groups/created.html.tmpl
create mode 100644 template/en/default/admin/groups/delete.html.tmpl
create mode 100644 template/en/default/admin/groups/deleted.html.tmpl
create mode 100644 template/en/default/admin/groups/edit.html.tmpl
create mode 100644 template/en/default/admin/groups/list.html.tmpl
create mode 100644 template/en/default/admin/groups/remove.html.tmpl
(limited to 'template/en/default/admin')
diff --git a/template/en/default/admin/groups/change.html.tmpl b/template/en/default/admin/groups/change.html.tmpl
new file mode 100644
index 000000000..c2f2c8f9f
--- /dev/null
+++ b/template/en/default/admin/groups/change.html.tmpl
@@ -0,0 +1,111 @@
+[%# 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
+ Checking....
+
+ [% IF changes %]
+ changed.
+ [% END %]
+ Group updated, please confirm removal: This option will remove all explicitly defined users
+ [% ELSIF regexp %]
+ This option will remove all users included in the regular expression:
+ [% regexp FILTER html %]
+ [% ELSE %]
+
+ There is no regular expression defined.
+ No users will be removed.
+
+ Generally, you will only need to do this when upgrading groups + created with [% terms.Bugzilla %] versions 2.16 and prior. Use + this option with extreme care and consult the documentation + for further information. +
+ + + [% END %] +[% ELSE %] + [%# if we got this far, the admin doesn't want to convert, so just save + # their changes %] + + [% IF changes %] +Done.
+ [% ELSE %] ++ You didn't change anything! If you really meant it, hit the Back + button and try again. +
+ [% END %] + +Back to the group list.
+[% END %] + +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/admin/groups/create.html.tmpl b/template/en/default/admin/groups/create.html.tmpl index 239d7f984..8da00a799 100644 --- a/template/en/default/admin/groups/create.html.tmpl +++ b/template/en/default/admin/groups/create.html.tmpl @@ -20,7 +20,10 @@ # Joel PeshkinOK, done.
+ +Add another group or +go back to the group list.
+ +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/admin/groups/delete.html.tmpl b/template/en/default/admin/groups/delete.html.tmpl new file mode 100644 index 000000000..0e17cbb1c --- /dev/null +++ b/template/en/default/admin/groups/delete.html.tmpl @@ -0,0 +1,100 @@ +[%# 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 MillerId | +Name | +Description | +
---|---|---|
[% gid FILTER html %] | +[% name FILTER html %] | +[% desc FILTER html %] | +
+ This group cannot be deleted because there are records + in the database which refer to it. All such records + must be removed or altered to remove the reference to this + group before the group can be deleted. +
+ ++ View + the list of which records are affected. +
+[% ELSE %] +The group [% name FILTER html %] has been deleted.
+[% END %] + +Go back to the group list.
+
+[% PROCESS global/footer.html.tmpl %]
diff --git a/template/en/default/admin/groups/edit.html.tmpl b/template/en/default/admin/groups/edit.html.tmpl
new file mode 100644
index 000000000..619db777c
--- /dev/null
+++ b/template/en/default/admin/groups/edit.html.tmpl
@@ -0,0 +1,159 @@
+[%# 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
Members of these groups can grant membership to this group | +|||
| | +Members of these groups are included in this group | +||
| | +| | ++ | |
+ + + | ++ + + | +[% group.grpnam FILTER html %] | +[% group.grpdesc FILTER html %] | +
+
+ Conversion of groups created with [% terms.Bugzilla %] + versions 2.16 and prior: + +
|
+
Name | +Description | +User RegExp | +Use For [% terms.Bugs %] | +Type | +Action | +
---|---|---|---|---|---|
[% group.name FILTER html %] | +[% group.description FILTER html %] | +[% group.regexp FILTER html %]  | + ++ [% IF (group.isactive != 0) && (group.isbuggroup) %] + X + [% ELSE %] +   + [% END %] + | + ++ [% (group.isbuggroup) ? "user" : "system" %] + | + ++ Edit + [% IF (group.isbuggroup) %] + | Delete + [% END %] + | +
+ | Add Group | +
+ Name is what is used with the UserInGroup() 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. +
+ ++ Description 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. +
+ ++ User RegExp 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$' +
+ ++ The Use For [% terms.Bugs %] 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. +
+ ++ The Type field identifies system groups. +
+ +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/admin/groups/remove.html.tmpl b/template/en/default/admin/groups/remove.html.tmpl new file mode 100644 index 000000000..0eed2d9fb --- /dev/null +++ b/template/en/default/admin/groups/remove.html.tmpl @@ -0,0 +1,60 @@ +[%# 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 MillerRemoving explicit membership
+[% ELSE %] +Removing explicit memberships of users matching + '[% regexp FILTER html %]'...
+[% END %] + +[% FOREACH user = users %] + [% user.login FILTER html %] removedDone.
+ +Back to the group list.
+ +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b