[%# 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:
  # none
  #%]

[% PROCESS global/header.html.tmpl
  title = "Add group"
  subheader = "This page allows you to define a new user group."
  doc_section = "groups.html#create-groups"
%]

<form method="post" action="editgroups.cgi">
  <table class="admin_table">
  <tr class="odd_row">
    <th align="left"><label for="name">New Name:</label></th>
    <td><input size="20" id="name" name="name" /></td>
  </tr>
  <tr class="even_row">
    <th align="left"><label for="desc">New Description:</label></th>
    <td><input size="40" id="desc" name="desc" /></td>
  </tr>
  <tr class="odd_row">
    <th align="left"><label for="regexp">New User RegExp:</label></th>
    <td><input size="30" id="regexp" name="regexp" /></td>
  </tr>
  <tr class="even_row">
    <th align="left"><label for="isactive">Use For [% terms.Bugs %]:</label></th>
    <td><input type="checkbox" id="isactive" name="isactive" value="1" checked="checked" /></td>
  </tr>
  <tr class="odd_row">
    <th align="left"><label for="icon_url">Icon URL:</label></th>
    <td><input type="text" size="70" maxlength="255" id="icon_url" name="icon_url" /></td>
  </tr>
  [% Hook.process('field') %]
  </table>

  <p>
    <input type="checkbox" id="insertnew" name="insertnew" value="1" />
    <label for="insertnew">Associate new group with ALL existing products</label>
  </p>

  <hr />

  <p>
    <input type="submit" id="create" value="Add" />
    <input type="hidden" name="action" value="new" />
    <input type="hidden" name="token" value="[% token FILTER html %]" />
  </p>
</form>

<p><b>Name</b> is the group name displayed for users when
limitting [% terms.bugs %] 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>The <b>Use For [% terms.Bugs %]</b> 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. <b>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.</b></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 regular expression.</p>

<p>
  <b>Icon URL</b> is optional, and is the URL pointing to the icon
  used to identify the group. It may be either a relative URL to the base URL
  of this installation or an absolute URL. This icon will be displayed
  in comments in [% terms.bugs %] besides the name of the author of comments.
</p>

<p>If you select "Associate new group with ALL existing products",
new group will be added as optional (SHOWN/NA) into ALL existing products,
so any member of this group will be able to decide whether to restrict
bug access in ANY product by this group.</p>

<p>Back to the <a href="./">main [% terms.bugs %] page</a>

or to the <a href="editgroups.cgi">group list</a>.

[% PROCESS global/footer.html.tmpl %]
