summaryrefslogtreecommitdiffstats
path: root/template/en/default/search
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2015-03-19 09:35:17 +0100
committerByron Jones <glob@mozilla.com>2015-03-19 09:35:17 +0100
commit42584a88aecb7430d6cef2c7b73779842ea5c80d (patch)
tree91ad61876c94997af57fad9bab6228d544de7029 /template/en/default/search
parent0f01ca16e49a2b7b73778a11c4d03b5dd33b0099 (diff)
downloadbugzilla-42584a88aecb7430d6cef2c7b73779842ea5c80d.tar.gz
bugzilla-42584a88aecb7430d6cef2c7b73779842ea5c80d.tar.xz
Bug 342113: Allow custom fields to appear as a discrete field in the search form
r=glob,a=glob
Diffstat (limited to 'template/en/default/search')
-rw-r--r--template/en/default/search/form.html.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl
index 0420811ee..c9265f076 100644
--- a/template/en/default/search/form.html.tmpl
+++ b/template/en/default/search/form.html.tmpl
@@ -127,6 +127,10 @@ TUI_hide_default('information_query');
{ field => bug_fields.keywords, accesskey => 'k',
qtypes => ['allwords', 'anywords', 'nowords', 'regexp', 'notregexp'] }
] %]
+ [% FOREACH field = custom_fields %]
+ [% freetext_fields.push({ field => field }) IF field.type == constants.FIELD_TYPE_FREETEXT or field.type == constants.FIELD_TYPE_TEXTAREA %]
+ [% END %]
+
[% Hook.process('before_freetext_fields') %]
[%# loop through a bunch of free text fields and print out their text stuff %]
@@ -215,6 +219,15 @@ TUI_hide_default('information_query');
accesskey =>"o"
value => default.op_sys
%]
+ [% FOREACH field = custom_fields %]
+ [% IF field.type == constants.FIELD_TYPE_SINGLE_SELECT or
+ field.type == constants.FIELD_TYPE_MULTI_SELECT %]
+ [% INCLUDE "search/field.html.tmpl"
+ field => field
+ value => default.${field.name}
+ %]
+ [% END %]
+ [% END %]
[% Hook.process('after_selects_bottom') %]
</div>
</div>