[%# 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): Myk Melez # Erik Stambaugh #%] [%# INTERFACE: # fields: hash/record; the fields being matched, each of which has: # type: single|multi: whether or not the user can select multiple matches # flag_type: for flag requestee fields, the type of flag being requested # matches: hash; Hierarchical. The levels go like this: # field_name { # pattern_text { # 'users' = @user_list (user objects) # 'status' = success|fail|trunc (result of search. # 'trunc' (truncated) means max was reached) # } # } # script: string; The name of the calling script, used to create a # self-referential URL #%] [%# use the global field descs %] [% PROCESS "global/field-descs.none.tmpl" %] [%# This lists fields which use the user auto-completion feature and which # are not listed in field_descs. %] [% field_labels = { # Used by editcomponents.cgi "initialcc" => "Default CC List", "initialowner" => "Default Assignee", "initialqacontact" => "Default QA Contact", # Used by process_bug.cgi "masscc" => "CC List", # Used by request.cgi "requester" => "Requester", "requestee" => "Requestee", # Used by userprefs.cgi "new_watchedusers" => "Watch List", } %] [% IF matchsuccess == 1 %] [% PROCESS global/header.html.tmpl title="Confirm Match" %] [% USE Bugzilla %]

[% IF matchmultiple %] [% terms.Bugzilla %] cannot make a conclusive match for one or more of the names and/or email addresses you entered on the previous page.
Please examine the lists of potential matches below and select the ones you want, [% ELSE %] [% terms.Bugzilla %] is configured to require verification whenever you enter a name or partial email address.
Below are the names/addresses you entered and the matched accounts. Please confirm that they are correct, [% END %] or go back to the previous page to revise the names you entered.

[% ELSE %] [% PROCESS global/header.html.tmpl title="Match Failed" %]

[% terms.Bugzilla %] was unable to make any match at all for one or more of the names and/or email addresses you entered on the previous page. [% IF !user.id %] Note: You are currently logged out. Only exact matches against e-mail addresses will be performed. [% END %]

Please go back and try other names or email addresses.

[% END %] [%# this is messy to allow later expansion %] [% FOREACH field = matches %] [% END %]

[% PROCESS field_names field_name=field.key %]: [% FOREACH query = field.value %]
[% query.key FILTER html %] [% IF query.value.users.size %] [% IF query.value.users.size > 1 %] [% IF query.value.status == 'fail' %] matches multiple users. Please go back and try again with a more specific name/address. [% ELSE %] [% IF query.value.status == 'trunc' %] matched more than the maximum of [% query.value.users.size %] users:
[% ELSE %] matched:
[% END %] [% END %] [% ELSE %] matched [% query.value.users.0.identity FILTER html %] [% END %] [% ELSE %] [% IF (query.key.length < 3) && !Param('emailsuffix') %] was too short for substring match (minimum 3 characters) [% ELSE %] did not match anything [% END %] [% END %]
[% END %]

[% IF matchsuccess == 1 %] [% SET exclude_these = matches.keys.merge(['Bugzilla_login', 'Bugzilla_password']) %] [% SET exclude = '^' _ exclude_these.join('|') _ '$' %] [% PROCESS "global/hidden-fields.html.tmpl" exclude = exclude %]

[% END %] [% PROCESS global/footer.html.tmpl %] [% BLOCK field_names %] [% IF field_descs.$field_name %] [% field_descs.$field_name FILTER html %] [% ELSIF field_labels.$field_name %] [% field_labels.$field_name FILTER html %] [% ELSIF field_name.match("^requestee") %] [% fields.${field_name}.flag_type.name %] requestee [% ELSE %] [% field_name FILTER html %] [% END %] [% END %]