From f8aa7c37e231bb36d36305696f7bd3794674b211 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Mon, 10 Nov 2003 05:07:25 +0000 Subject: Bug 207211: Editgroups.cgi - template for add a group page; r=myk; a=myk. --- editgroups.cgi | 51 +++++++-------------------------------------------- 1 file changed, 7 insertions(+), 44 deletions(-) (limited to 'editgroups.cgi') diff --git a/editgroups.cgi b/editgroups.cgi index e793f296a..937056512 100755 --- a/editgroups.cgi +++ b/editgroups.cgi @@ -21,6 +21,7 @@ # Contributor(s): Dave Miller # Joel Peshkin # Jacob Steenhagen +# Vlad Dascalu # Code derived from editowners.cgi and editusers.cgi @@ -30,6 +31,8 @@ use lib "."; use Bugzilla::Constants; require "CGI.pl"; +use vars qw($template $vars); + ConnectToDatabase(); confirm_login(); @@ -282,51 +285,11 @@ if ($action eq 'changeform') { # if ($action eq 'add') { - PutHeader("Add group"); - - print "
\n"; - print "\n"; - print ""; - print ""; - print ""; - print ""; - print ""; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "
New NameNew DescriptionNew User RegExpUse For Bugs
\n
\n"; - print "\n"; - print "Insert new group into all existing products.

\n"; - print "\n"; - print "\n"; - print "

"; + print Bugzilla->cgi->header(); - print "

"; - print "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 bugs by email to limit a bug to a certain set of groups. It -may not contain any spaces.

"; - print "Description is what will be shown in the bug reports to -members of the group where they can choose whether the bug will be restricted -to others in the same group.

"; - print "The Use For Bugs flag determines whether or not the group is eligible to be used for bugs. -If you clear this, it will no longer be possible for users to add bugs -to this group, although 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 bugs, in which case you should leave this checked.

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

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

\n"; - - PutTrailer("back to the group list"); + $template->process("admin/add-group.html.tmpl", $vars) + || ThrowTemplateError($template->error()); + exit; } -- cgit v1.2.3-24-g4f1b