[%# 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): Chris Lahey [javascript fixes] # Christian Reis [javascript rewrite] # Gervase Markham # Guy Pyrzak #%] [% PROCESS "global/field-descs.none.tmpl" %] [% query_types = [ "allwordssubstr", "anywordssubstr", "substring", "casesubstring", "allwords", "anywords", "regexp", "notregexp", ] %] [%# If we resubmit to ourselves, we need to know if we are using a format. %] [% thisformat = query_format != '' ? query_format : format %] [%# *** Summary *** %]
[% INCLUDE "search/field.html.tmpl" field = bug_fields.short_desc types = query_types value = default.short_desc.0 type_selected = default.short_desc_type.0 accesskey = "s" %] [% IF button_name %] [% END %]
[%# *** Classification Product Component *** %] [% value_controllers = { 'classification' => { 'products' => bug_fields.product }, 'product' => { 'components' => bug_fields.component, 'versions' => bug_fields.version, 'milestones' => bug_fields.target_milestone }, } %] [% Hook.process('before_selects_top') %] [% IF Param('useclassification') %] [% INCLUDE "search/field.html.tmpl" field => bug_fields.classification accesskey => "c" value => default.classification %] [% END %] [% INCLUDE "search/field.html.tmpl" field => bug_fields.product accesskey => "p" value => default.product %] [% INCLUDE "search/field.html.tmpl" field => bug_fields.component accesskey => "m" value => default.component %] [% INCLUDE "search/field.html.tmpl" field => bug_fields.bug_status accesskey => "a" value => default.bug_status %] [% INCLUDE "search/field.html.tmpl" field => bug_fields.resolution accesskey => "r" value => default.resolution %] [% Hook.process('after_selects_top') %]
Detailed [% terms.Bug %] Information Narrow results by the following fields: [%+ field_descs.longdesc FILTER html %]s, [%+ field_descs.bug_file_loc FILTER html %], [% IF Param('usestatuswhiteboard') %] [%+ field_descs.status_whiteboard FILTER html %], [%+ END %] [% IF use_keywords %] [%+ field_descs.keywords FILTER html %], [%+ END %] [% IF user.is_timetracker %] [%+ field_descs.deadline FILTER html %], [%+ END %] [% terms.Bug %] Numbers, [%+ field_descs.version FILTER html %], [% IF Param('usetargetmilestone') %] [%+ field_descs.target_milestone FILTER html %], [%+ END %] [% field_descs.bug_severity FILTER html %], [%+ field_descs.priority FILTER html %], [%+ field_descs.rep_platform FILTER html %], [%+ field_descs.op_sys FILTER html %]
[%# *** Comment URL Whiteboard Keywords *** %]
[% SET freetext_fields = [ { field => bug_fields.longdesc, accesskey => 'c' }, { field => bug_fields.bug_file_loc, accesskey => 'u' }, { field => bug_fields.status_whiteboard, accesskey => 'w' }, { field => bug_fields.keywords, accesskey => 'k', qtypes => ['allwords', 'anywords', 'nowords', 'regexp', 'notregexp'] } ] %] [% Hook.process('before_freetext_fields') %] [%# loop through a bunch of free text fields and print out their text stuff %] [% FOREACH field_container = freetext_fields %] [% NEXT IF field_container.field.name == 'status_whiteboard' AND NOT Param('usestatuswhiteboard') %] [% NEXT IF field_container.field.name == 'keywords' AND NOT use_keywords %]
[% type = field_container.field.name _ "_type" %] [% INCLUDE "search/field.html.tmpl" field => field_container.field types => field_container.qtypes || query_types accesskey => field_container.accesskey value => default.${field_container.field.name}.0 type_selected => default.$type.0 %]
[% END %] [%# Deadline %] [% IF user.is_timetracker %]
[% INCLUDE "search/field.html.tmpl" field = bug_fields.deadline accesskey = "l" value = [ default.deadlinefrom.0, default.deadlineto.0 ] %]
[% END %]
(comma-separated list)
should be the results
[% Hook.process('after_freetext_fields') %] [%# *** Status Resolution Severity Priority Hardware OS *** %]
[% Hook.process('before_selects_bottom') %] [% fake_version_field = { name => bug_fields.version.name, type => constants.FIELD_TYPE_SINGLE_SELECT }%] [% INCLUDE "search/field.html.tmpl" field => fake_version_field value => default.version %] [% IF Param('usetargetmilestone') %] [% fake_target_milestone_field = { name => bug_fields.target_milestone.name , type => constants.FIELD_TYPE_SINGLE_SELECT } %] [% INCLUDE "search/field.html.tmpl" field => fake_target_milestone_field value => default.target_milestone %] [% END %] [% INCLUDE "search/field.html.tmpl" field => bug_fields.bug_severity accesskey=> "v" value => default.bug_severity %] [% INCLUDE "search/field.html.tmpl" field => bug_fields.priority accesskey => "i" value => default.priority %] [% INCLUDE "search/field.html.tmpl" field => bug_fields.rep_platform accesskey =>"h" value => default.rep_platform %] [% INCLUDE "search/field.html.tmpl" field => bug_fields.op_sys accesskey =>"o" value => default.op_sys %] [% Hook.process('after_selects_bottom') %]
[%# *** Email Numbering *** %]
Search By People Narrow results to a role (i.e. [% field_descs.assigned_to FILTER html %], [%+ field_descs.reporter FILTER html %], [% field_descs.commenter FILTER html %], etc.) a person has on [% terms.abug %]
[% FOREACH n = [1, 2, 3] %]
Any of: [% PROCESS role_types field = { count => n, name => "emailassigned_to", label=> "the ${terms.Bug} ${field_descs.assigned_to}" } %] [% PROCESS role_types field = { count => n, name => "emailreporter", label=> "the ${field_descs.reporter}" } %] [% IF Param('useqacontact') %] [% PROCESS role_types field = { count => n, name => "emailqa_contact", label=> "the ${field_descs.qa_contact}" } %] [% END %] [% PROCESS role_types field = { count => n, name => "emailcc", label=> "a ${field_descs.cc} list member" } %] [% PROCESS role_types field = { count => n, name => "emaillongdesc", label=> " a ${field_descs.commenter}" } %] [% IF feature_enabled('jsonrpc') %]
[% END %] [% IF feature_enabled('jsonrpc') %]
[% END %]
[% END %] [% Hook.process('email_numbering_end') %]
[%# *** Bug Changes *** %]
Search By Change History Narrow results to how fields have changed during a specific time period
  • [%# Create array, so we can sort it by description #%] [% chfields = [] %] [% FOREACH field = chfield %] [% chfields.push({value => field, desc => (field_descs.$field || field) }) %] [% END %]
  • and
    (YYYY-MM-DD or relative dates)
[%############################################################################%] [%# Block for email role type use to select which email to search through #%] [%############################################################################%] [% BLOCK role_types %]
[% END %]