[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [%# 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 #%] [%# 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 %]
[% 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 %]