From d0c14a97593f2f005d7f819d70f90fda0f053ed1 Mon Sep 17 00:00:00 2001 From: "jouni%heikniemi.net" <> Date: Wed, 19 Nov 2003 14:42:04 +0000 Subject: Bug 226119: The template admin/add-group.html.tmpl moved to admin/groups/create.html.tmpl to better match with admin template naming consensus discussed in reviewers@. r=myk, a=justdave --- editgroups.cgi | 2 +- template/en/default/admin/add-group.html.tmpl | 82 ----------------------- template/en/default/admin/groups/create.html.tmpl | 82 +++++++++++++++++++++++ 3 files changed, 83 insertions(+), 83 deletions(-) delete mode 100755 template/en/default/admin/add-group.html.tmpl create mode 100644 template/en/default/admin/groups/create.html.tmpl diff --git a/editgroups.cgi b/editgroups.cgi index 6bf618427..db35a5aa8 100755 --- a/editgroups.cgi +++ b/editgroups.cgi @@ -287,7 +287,7 @@ if ($action eq 'changeform') { if ($action eq 'add') { print Bugzilla->cgi->header(); - $template->process("admin/add-group.html.tmpl", $vars) + $template->process("admin/groups/create.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; diff --git a/template/en/default/admin/add-group.html.tmpl b/template/en/default/admin/add-group.html.tmpl deleted file mode 100755 index 5adb53599..000000000 --- a/template/en/default/admin/add-group.html.tmpl +++ /dev/null @@ -1,82 +0,0 @@ - -[%# 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 - - #%] - -[% PROCESS global/header.html.tmpl - title = "Add group" - h2 = "This page allows you to define a new user group." -%] - -
- - - - - - - - - - -
New NameNew DescriptionNew User RegExpUse For [% terms.Bugs %]

- - - Insert new group into all existing products.

- - -

- -

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 a [% terms.bug %] to -a certain set of groups. It may not contain any spaces.

- -

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.

- -

The Use For [% terms.Bugs %] flag determines whether or not the -group is eligible to be used for [% terms.bugs %]. If you clear this, 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 would be. Note: If you are creating -a group, you probably want it to be usable for [% terms.bugs %], in which -case you should leave this checked.

- -

User RegExp is optional, and if filled in, will -automatically grant membership to this group to anyone with an -email address that matches this regular expression.

- -

By default, the new group will be associated with existing -products. Unchecking the "Insert new group into all existing -products" option will prevent this and make the group become -visible only when its controls have been added to a product.

- -

Back to the main [% terms.bugs %] page - -or to the group list. - -[% 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 new file mode 100644 index 000000000..5adb53599 --- /dev/null +++ b/template/en/default/admin/groups/create.html.tmpl @@ -0,0 +1,82 @@ + +[%# 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 + + #%] + +[% PROCESS global/header.html.tmpl + title = "Add group" + h2 = "This page allows you to define a new user group." +%] + +

+ + + + + + + + + + +
New NameNew DescriptionNew User RegExpUse For [% terms.Bugs %]

+ + + Insert new group into all existing products.

+ + +

+ +

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 a [% terms.bug %] to +a certain set of groups. It may not contain any spaces.

+ +

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.

+ +

The Use For [% terms.Bugs %] flag determines whether or not the +group is eligible to be used for [% terms.bugs %]. If you clear this, 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 would be. Note: If you are creating +a group, you probably want it to be usable for [% terms.bugs %], in which +case you should leave this checked.

+ +

User RegExp is optional, and if filled in, will +automatically grant membership to this group to anyone with an +email address that matches this regular expression.

+ +

By default, the new group will be associated with existing +products. Unchecking the "Insert new group into all existing +products" option will prevent this and make the group become +visible only when its controls have been added to a product.

+ +

Back to the main [% terms.bugs %] page + +or to the group list. + +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b